Class ExpandCrossBowItem
java.lang.Object
com.blamejared.crafttweaker.natives.item.type.projectileweapon.ExpandCrossBowItem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetChargeDuration(net.minecraft.world.item.ItemStack crossbowStack, net.minecraft.world.entity.LivingEntity entity) Gets the charged duration of the given stack.static booleanisCharged(net.minecraft.world.item.ItemStack crossbowStack) Checks if the stack is chargedstatic voidperformShooting(net.minecraft.world.item.CrossbowItem internal, net.minecraft.world.level.Level level, net.minecraft.world.entity.LivingEntity shooter, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack stack, float power, float accuracy, net.minecraft.world.entity.LivingEntity target)
-
Constructor Details
-
ExpandCrossBowItem
public ExpandCrossBowItem()
-
-
Method Details
-
performShooting
public static void performShooting(net.minecraft.world.item.CrossbowItem internal, net.minecraft.world.level.Level level, net.minecraft.world.entity.LivingEntity shooter, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack stack, float power, float accuracy, net.minecraft.world.entity.LivingEntity target) -
isCharged
public static boolean isCharged(net.minecraft.world.item.ItemStack crossbowStack) Checks if the stack is charged- Parameters:
crossbowStack- the stack to check- Returns:
- true if charged, false otherwise.
- DocParam:
- crossbowStack invalid input: '<'item:minecraft:crossbow>
-
getChargeDuration
public static int getChargeDuration(net.minecraft.world.item.ItemStack crossbowStack, net.minecraft.world.entity.LivingEntity entity) Gets the charged duration of the given stack.- Parameters:
crossbowStack- The stack to checkentity- The entity to get the charge duration for- Returns:
- the charged duration of the given stack.
- DocParam:
- crossbowStack invalid input: '<'item:minecraft:crossbow>, entity entity
-