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.
import crafttweaker.api.item.type.projectileweapon.ProjectileWeaponItem;
Extends
ProjectileWeaponItem extends ItemDefinition
.
Implements
ProjectileWeaponItem
implements the following interfaces:
Undocumented Interfaces
FeatureElement
,IForgeItem
Members
asItem() as Item
as Item
// ProjectileWeaponItem as ItemDefinitionmyProjectileWeaponItem as Item
Return Type:
ItemDefinition
Getter
// ProjectileWeaponItem.commandString as stringmyProjectileWeaponItem.commandString
Return Type:
string
commandString() as string
// ProjectileWeaponItem.commandString() as string;myProjectileWeaponItem.commandString();
Return Type:
string
Getter
// ProjectileWeaponItem.defaultInstance as IItemStackmyProjectileWeaponItem.defaultInstance
Return Type:
IItemStack
defaultInstance() as IItemStack
implicit as IItemStack
// ProjectileWeaponItem as IItemStackmyProjectileWeaponItem as IItemStack
Return Type:
IItemStack
Getter
Gets the default projectile range for this item.script.zs
// ProjectileWeaponItem.defaultProjectileRange as intmyProjectileWeaponItem.defaultProjectileRange
Return Type:
int
Getter
// ProjectileWeaponItem.registryName as ResourceLocationmyProjectileWeaponItem.registryName
Return Type:
ResourceLocation
registryName() as ResourceLocation
Getter
Gets a predicate for the supported held projectiles for this item. script.zs
held projectiles are projectiles that can only be used when held in the off-hand while shooting / charging
myProjectileWeaponItem.supportedHeldProjectiles
Return Type:
function(t as ItemStack) as bool