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;
BowItem extends ProjectileWeaponItem
.
BowItem
implements the following interfaces:
Vanishable
,ItemLike
Undocumented Interfaces FeatureElement
, IItemExtension
Gets a predicate for the supported projectiles for this item. // BowItem.allSupportedProjectiles as function(t as ItemStack) as bool
myBowItem . allSupportedProjectiles
Return Type:
function(t as ItemStack ) as bool
A predicate which only accepts arrow items // BowItem.ARROW_ONLY() as function(t as ItemStack) as bool;
Return Type:
function(t as ItemStack ) as bool
A predicate which supports arrow items and fireworks // BowItem.ARROW_OR_FIREWORK() as function(t as ItemStack) as bool;
BowItem . ARROW_OR_FIREWORK();
Return Type:
function(t as ItemStack ) as bool
// BowItem.commandString as string
Return Type:
string
// BowItem.commandString() as string;
myBowItem . commandString();
Return Type:
string
// BowItem.defaultInstance as IItemStack
myBowItem . defaultInstance
Return Type:
IItemStack
// BowItem.defaultInstance() as IItemStack;
myBowItem . defaultInstance();
Return Type:
IItemStack
Gets the default projectile range for this item. // BowItem.defaultProjectileRange as int
myBowItem . defaultProjectileRange
Return Type:
int
Converts the given time to a power value between 0 and 1 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
// BowItem.registryName() as ResourceLocation;
myBowItem . registryName();
Return Type:
ResourceLocation
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
// BowItem.supportedHeldProjectiles as function(t as ItemStack) as bool
myBowItem . supportedHeldProjectiles
Return Type:
function(t as ItemStack ) as bool