ItemSupplier

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.

script.zs
import crafttweaker.api.entity.type.projectile.ItemSupplier;

Members

Getter
script.zs
// ItemSupplier.item as ItemStack
myItemSupplier.item

Return Type: ItemStack

item() as ItemStack
script.zs
// ItemSupplier.item() as ItemStack;
myItemSupplier.item();

Return Type: ItemStack