Package net.minecraft.item
Class RangedWeaponItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.RangedWeaponItem
- All Implemented Interfaces:
ItemConvertible
- Direct Known Subclasses:
BowItem,CrossbowItem
public abstract class RangedWeaponItem extends Item
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description static Predicate<ItemStack>BOW_PROJECTILESstatic Predicate<ItemStack>CROSSBOW_HELD_PROJECTILESFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, group, RANDOM -
Constructor Summary
Constructors Constructor Description RangedWeaponItem(Item.Settings settings) -
Method Summary
Modifier and Type Method Description intgetEnchantability()static ItemStackgetHeldProjectile(LivingEntity entity, Predicate<ItemStack> predicate)Predicate<ItemStack>getHeldProjectiles()abstract Predicate<ItemStack>getProjectiles()abstract intgetRange()Methods inherited from class net.minecraft.item.Item
appendStacks, appendTooltip, asItem, byRawId, canMine, canRepair, damage, finishUsing, fromBlock, getAttributeModifiers, getDrinkSound, getEatSound, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getStackForRender, getTranslationKey, getTranslationKey, getUseAction, hasEnchantmentGlint, hasRecipeRemainder, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFireproof, isFood, isIn, isIn, isNetworkSynced, isUsedOnRelease, onCraft, onStoppedUsing, postHit, postMine, postProcessTag, rayTrace, shouldSyncTagToClient, toString, usageTick, use, useOnBlock, useOnEntity
-
Field Details
-
Constructor Details
-
Method Details
-
getHeldProjectiles
-
getProjectiles
-
getHeldProjectile
-
getEnchantability
public int getEnchantability()- Overrides:
getEnchantabilityin classItem
-
getRange
public abstract int getRange()
-