Class ExpandProjectileWeaponItem
java.lang.Object
com.blamejared.crafttweaker.natives.item.type.projectileweapon.ExpandProjectileWeaponItem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Predicate<net.minecraft.world.item.ItemStack>A predicate which only accepts arrow itemsstatic Predicate<net.minecraft.world.item.ItemStack>A predicate which supports arrow items and fireworksstatic Predicate<net.minecraft.world.item.ItemStack>getAllSupportedProjectiles(net.minecraft.world.item.ProjectileWeaponItem internal) Gets a predicate for the supported projectiles for this item.static intgetDefaultProjectileRange(net.minecraft.world.item.ProjectileWeaponItem internal) Gets the default projectile range for this item.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.
-
Constructor Details
-
ExpandProjectileWeaponItem
public ExpandProjectileWeaponItem()
-
-
Method Details
-
ARROW_ONLY
A predicate which only accepts arrow items -
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
-