Package net.minecraft.item
Class BowItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.RangedWeaponItem
net.minecraft.item.BowItem
- All Implemented Interfaces:
ItemConvertible,Vanishable
public class BowItem extends RangedWeaponItem implements Vanishable
-
Nested Class Summary
-
Field Summary
Fields inherited from class net.minecraft.item.RangedWeaponItem
BOW_PROJECTILES, 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 BowItem(Item.Settings settings) -
Method Summary
Modifier and Type Method Description intgetMaxUseTime(ItemStack stack)Predicate<ItemStack>getProjectiles()static floatgetPullProgress(int useTicks)intgetRange()UseActiongetUseAction(ItemStack stack)voidonStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks)TypedActionResult<ItemStack>use(World world, PlayerEntity user, Hand hand)Methods inherited from class net.minecraft.item.RangedWeaponItem
getEnchantability, getHeldProjectile, getHeldProjectilesMethods inherited from class net.minecraft.item.Item
appendStacks, appendTooltip, asItem, byRawId, canMine, canRepair, damage, finishUsing, fromBlock, getAttributeModifiers, getDrinkSound, getEatSound, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getStackForRender, getTranslationKey, getTranslationKey, hasEnchantmentGlint, hasRecipeRemainder, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFireproof, isFood, isIn, isIn, isNetworkSynced, isUsedOnRelease, onCraft, postHit, postMine, postProcessTag, rayTrace, shouldSyncTagToClient, toString, usageTick, useOnBlock, useOnEntity
-
Constructor Details
-
Method Details
-
onStoppedUsing
- Overrides:
onStoppedUsingin classItem
-
getPullProgress
public static float getPullProgress(int useTicks) -
getMaxUseTime
- Overrides:
getMaxUseTimein classItem
-
getUseAction
- Overrides:
getUseActionin classItem
-
use
-
getProjectiles
- Specified by:
getProjectilesin classRangedWeaponItem
-
getRange
public int getRange()- Specified by:
getRangein classRangedWeaponItem
-