Class ExpandProjectileWeaponItem

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

@ZenRegister public class ExpandProjectileWeaponItem extends Object
  • Constructor Details

    • ExpandProjectileWeaponItem

      public ExpandProjectileWeaponItem()
  • Method Details

    • ARROW_ONLY

      public static Predicate<net.minecraft.world.item.ItemStack> ARROW_ONLY()
      A predicate which only accepts arrow items
    • ARROW_OR_FIREWORK

      public static Predicate<net.minecraft.world.item.ItemStack> ARROW_OR_FIREWORK()
      A predicate which supports arrow items and fireworks
    • getSupportedHeldProjectiles

      public static Predicate<net.minecraft.world.item.ItemStack> getSupportedHeldProjectiles(net.minecraft.world.item.ProjectileWeaponItem internal)
      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

      Returns:
      a predicate for what held ammo items are supported.
    • getAllSupportedProjectiles

      public static Predicate<net.minecraft.world.item.ItemStack> getAllSupportedProjectiles(net.minecraft.world.item.ProjectileWeaponItem internal)
      Gets a predicate for the supported projectiles for this item.
      Returns:
      a predicate for what ammo items are supported.
    • getDefaultProjectileRange

      public static int getDefaultProjectileRange(net.minecraft.world.item.ProjectileWeaponItem internal)
      Gets the default projectile range for this item.
      Returns:
      the default projectile range