java.lang.Object
com.blamejared.crafttweaker.natives.item.type.projectileweapon.ExpandCrossBowItem

@ZenRegister public class ExpandCrossBowItem extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    getChargeDuration(net.minecraft.world.item.ItemStack crossbowStack, net.minecraft.world.entity.LivingEntity entity)
    Gets the charged duration of the given stack.
    static boolean
    isCharged(net.minecraft.world.item.ItemStack crossbowStack)
    Checks if the stack is charged
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 check
      entity - 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