ProjectileWeaponItem
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.
Extends
ProjectileWeaponItem extends ItemDefinition
.
Implements
ProjectileWeaponItem
implements the following interfaces:
Undocumented Interfaces
FeatureElement
,IItemExtension
Members
Getter
Gets a predicate for the supported projectiles for this item.
Return Type:
function(t as ItemStack) as bool
static ARROW_ONLY() as function(t as ItemStack) as bool
static ARROW_OR_FIREWORK() as function(t as ItemStack) as bool
asItem() as Item
Return Type:
ItemDefinition
as Item
Return Type:
ItemDefinition
Getter
Return Type:
string
commandString() as string
Return Type:
string
Getter
Return Type:
IItemStack
defaultInstance() as IItemStack
Return Type:
IItemStack
implicit as IItemStack
Return Type:
IItemStack
Getter
Gets the default projectile range for this item.
Return Type:
int
Getter
Return Type:
ResourceLocation
registryName() as ResourceLocation
Return Type:
ResourceLocation
Getter
Gets a predicate for the supported held projectiles for this item.
held projectiles are projectiles that can only be used when held in the off-hand while shooting / charging
Return Type:
function(t as ItemStack) as bool