ChargedProjectiles
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import crafttweaker.api.item.component.ChargedProjectiles;
Operators
in(item as Item) as bool
myItem in myChargedProjectiles
Parameters:
item: ItemDefinition
Type: ItemDefinition
Return Type:
bool
Members
contains(item as Item) as bool
myChargedProjectiles.contains(myItem);
Parameters:
item: ItemDefinition
Type: ItemDefinition
Return Type:
bool
Getter
// ChargedProjectiles.empty as boolmyChargedProjectiles.empty
Return Type:
bool
Getter
myChargedProjectiles.items
Return Type:
List<IItemStack>
static of(stack as IItemStack) as ChargedProjectiles
ChargedProjectiles.of(myIItemStack);
Parameters:
stack: IItemStack
Type: IItemStack
Return Type:
ChargedProjectiles
static of(stacks as List<IItemStack>) as ChargedProjectiles
ChargedProjectiles.of(myList);
Parameters:
stacks: List<IItemStack>
Type: List<IItemStack>
Return Type:
ChargedProjectiles