Package net.minecraft.world.item
Class BowItem
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.ProjectileWeaponItem
net.minecraft.world.item.BowItem
- All Implemented Interfaces:
- FeatureElement,- Vanishable,- ItemLike,- IItemExtension
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.item.ItemItem.Properties
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intFields inherited from class net.minecraft.world.item.ProjectileWeaponItemARROW_ONLY, ARROW_OR_FIREWORKFields inherited from class net.minecraft.world.item.ItemBASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, canRepair, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZEFields inherited from interface net.minecraft.world.flag.FeatureElementFILTERED_REGISTRIES
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncustomArrow(AbstractArrow arrow, ItemStack stack) intstatic floatgetPowerForTime(int p_40662_) getUseAnimation(ItemStack p_40678_) intgetUseDuration(ItemStack p_40680_) voidreleaseUsing(ItemStack p_40667_, Level p_40668_, LivingEntity p_40669_, int p_40670_) use(Level p_40672_, Player p_40673_, InteractionHand p_40674_) Methods inherited from class net.minecraft.world.item.ProjectileWeaponItemgetEnchantmentValue, getHeldProjectile, getSupportedHeldProjectilesMethods inherited from class net.minecraft.world.item.ItemappendHoverText, asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, finishUsingItem, getBarColor, getBarWidth, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getFoodProperties, getId, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getRenderPropertiesInternal, getTooltipImage, hasCraftingRemainingItem, hurtEnemy, initializeClient, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, requiredFeatures, shouldOverrideMultiplayerNbt, toString, useOn, useOnRelease, verifyTagAfterLoadMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElementisEnabledMethods inherited from interface net.neoforged.neoforge.common.extensions.IItemExtensioncanApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, getAttributeModifiers, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getDefaultTooltipHideFlags, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, isBookEnchantable, isCorrectToolForDrops, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onStopUsing, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
- 
Field Details- 
MAX_DRAW_DURATIONpublic static final int MAX_DRAW_DURATION- See Also:
 
- 
DEFAULT_RANGEpublic static final int DEFAULT_RANGE- See Also:
 
 
- 
- 
Constructor Details- 
BowItem
 
- 
- 
Method Details- 
releaseUsing- Overrides:
- releaseUsingin class- Item
 
- 
getPowerForTimepublic static float getPowerForTime(int p_40662_) 
- 
getUseDuration- Overrides:
- getUseDurationin class- Item
 
- 
getUseAnimation- Overrides:
- getUseAnimationin class- Item
 
- 
usepublic InteractionResultHolder<ItemStack> use(Level p_40672_, Player p_40673_, InteractionHand p_40674_) 
- 
getAllSupportedProjectiles- Specified by:
- getAllSupportedProjectilesin class- ProjectileWeaponItem
 
- 
customArrow
- 
getDefaultProjectileRangepublic int getDefaultProjectileRange()- Specified by:
- getDefaultProjectileRangein class- ProjectileWeaponItem
 
 
-