ChargedProjectiles

Link to chargedprojectiles

Importing the class

Link to importing-the-class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.item.component.ChargedProjectiles;

Name: of

Return Type: ChargedProjectiles

ZenScript
Copy
ChargedProjectiles.of(stack as IItemStack) as ChargedProjectiles
ParameterType
Parameter
stack
Type
IItemStack

Name: of

Return Type: ChargedProjectiles

ZenScript
Copy
ChargedProjectiles.of(stacks as stdlib.List<IItemStack>) as ChargedProjectiles
ParameterType
Parameter
stacks
Type
stdlib.List<IItemStack>

Name: contains

Return Type: boolean

ZenScript
Copy
ChargedProjectiles.contains(item as ItemDefinition) as boolean
ParameterType
Parameter
item
Type
ItemDefinition
NameTypeHas GetterHas Setter
Name
empty
Type
boolean
Has Getter
true
Has Setter
false
Name
items
Type
stdlib.List<IItemStack>
Has Getter
true
Has Setter
false