BowItem
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.BowItem;
Extends
BowItem extends ProjectileWeaponItem
.
Implements
BowItem
implements the following interfaces:
Undocumented Interfaces
FeatureElement
,IItemExtension
Members
asItem() as Item
as Item
// BowItem as ItemDefinitionmyBowItem as Item
Return Type:
ItemDefinition
Getter
// BowItem.commandString as stringmyBowItem.commandString
Return Type:
string
commandString() as string
// BowItem.commandString() as string;myBowItem.commandString();
Return Type:
string
Getter
// BowItem.defaultInstance as IItemStackmyBowItem.defaultInstance
Return Type:
IItemStack
defaultInstance() as IItemStack
implicit as IItemStack
// BowItem as IItemStackmyBowItem as IItemStack
Return Type:
IItemStack
Getter
Gets the default projectile range for this item.script.zs
// BowItem.defaultProjectileRange as intmyBowItem.defaultProjectileRange
Return Type:
int
static getPowerForTime(charge as int) as float
Converts the given time to a power value between 0 and 1script.zs
Returns: the given time as a power value between 0 and 1
// BowItem.getPowerForTime(charge as int) as float;BowItem.getPowerForTime(5);
Parameters:
charge: int
Type: int
- The charge to convert
Return Type:
float
Getter
// BowItem.registryName as ResourceLocationmyBowItem.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
myBowItem.supportedHeldProjectiles
Return Type:
function(t as ItemStack) as bool