public abstract class RangedWeaponItem extends Item
Item.Settings
Modifier and Type | Field and Description |
---|---|
static Predicate<ItemStack> |
BOW_PROJECTILES |
static Predicate<ItemStack> |
CROSSBOW_HELD_PROJECTILES |
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, group, RANDOM
Constructor and Description |
---|
RangedWeaponItem(Item.Settings settings) |
Modifier and Type | Method and Description |
---|---|
int |
getEnchantability()
Gets the enchantability of an item.
|
static ItemStack |
getHeldProjectile(LivingEntity entity,
Predicate<ItemStack> predicate) |
Predicate<ItemStack> |
getHeldProjectiles() |
abstract Predicate<ItemStack> |
getProjectiles() |
abstract int |
getRange() |
appendStacks, appendTooltip, asItem, byRawId, canMine, canRepair, damage, finishUsing, fromBlock, getAttributeModifiers, getDefaultStack, getDrinkSound, getEatSound, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getTranslationKey, getTranslationKey, getUseAction, hasGlint, hasRecipeRemainder, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFireproof, isFood, isIn, isIn, isNetworkSynced, isUsedOnRelease, onCraft, onStoppedUsing, postHit, postMine, postProcessTag, raycast, shouldSyncTagToClient, toString, usageTick, use, useOnBlock, useOnEntity
public RangedWeaponItem(Item.Settings settings)
public static ItemStack getHeldProjectile(LivingEntity entity, Predicate<ItemStack> predicate)
public int getEnchantability()
If the value of this method is 0, the item cannot be enchanted using an enchanting table.
getEnchantability
in class Item
public abstract int getRange()