类 BowItem
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.ProjectileWeaponItem
net.minecraft.world.item.BowItem
- 所有已实现的接口:
FeatureElement
,ItemLike
,IItemExtension
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.item.Item
Item.Properties, Item.TooltipContext
-
字段概要
字段从类继承的字段 net.minecraft.world.item.ProjectileWeaponItem
ARROW_ONLY, ARROW_OR_FIREWORK
从类继承的字段 net.minecraft.world.item.Item
ABSOLUTE_MAX_STACK_SIZE, APPROXIMATELY_INFINITE_USE_DURATION, BASE_ATTACK_DAMAGE_ID, BASE_ATTACK_SPEED_ID, BY_BLOCK, canCombineRepair, CODEC, DEFAULT_MAX_STACK_SIZE, descriptionId, MAX_BAR_WIDTH, STREAM_CODEC
从接口继承的字段 net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明int
static float
getPowerForTime
(int p_40662_) getUseAnimation
(ItemStack p_40678_) int
getUseDuration
(ItemStack p_40680_, LivingEntity p_345962_) boolean
releaseUsing
(ItemStack p_40667_, Level p_40668_, LivingEntity p_40669_, int p_40670_) protected void
shootProjectile
(LivingEntity p_331372_, Projectile p_332000_, int p_330631_, float p_331251_, float p_331199_, float p_330857_, LivingEntity p_331572_) use
(Level p_40672_, Player p_40673_, InteractionHand p_40674_) 从类继承的方法 net.minecraft.world.item.ProjectileWeaponItem
createProjectile, customArrow, draw, getAllSupportedProjectiles, getDefaultCreativeAmmo, getDurabilityUse, getHeldProjectile, getSupportedHeldProjectiles, getSupportedHeldProjectiles, shoot, useAmmo
从类继承的方法 net.minecraft.world.item.Item
appendHoverText, asItem, builtInRegistryHolder, byBlock, byId, canDestroyBlock, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBarColor, getBarWidth, getCraftingRemainder, getDamageSource, getDefaultInstance, getDefaultMaxStackSize, getDescriptionId, getDestroySpeed, getId, getName, getName, getPlayerPOVHitResult, getTooltipImage, hurtEnemy, interactLivingEntity, inventoryTick, isBarVisible, isCombineRepairable, isCorrectToolForDrops, isFoil, mineBlock, modifyDefaultComponentsFrom, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, postHurtEnemy, requiredFeatures, shouldPrintOpWarning, toString, useOn, useOnRelease, verifyComponentsAfterLoad
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 net.minecraft.world.flag.FeatureElement
isEnabled
从接口继承的方法 net.neoforged.neoforge.common.extensions.IItemExtension
applyEnchantments, canBeHurtBy, canContinueUsing, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, getAllEnchantments, getBurnTime, getCraftingRemainder, getCreatorModId, getDamage, getDefaultAttributeModifiers, getEnchantmentLevel, getEntityLifespan, getEquipmentSlot, getHighlightTip, getMaxDamage, getMaxStackSize, getSweepHitBox, getXpRepairRatio, hasCustomEntity, isDamageable, isDamaged, isGazeDisguise, isNotReplaceableByPickAction, isPiglinCurrency, isPrimaryItemFor, makesPiglinsNeutral, onAnimalArmorTick, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onItemUseFirst, onLeftClickEntity, onStopUsing, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, supportsEnchantment
-
字段详细资料
-
MAX_DRAW_DURATION
public static final int MAX_DRAW_DURATION- 另请参阅:
-
DEFAULT_RANGE
public static final int DEFAULT_RANGE- 另请参阅:
-
-
构造器详细资料
-
BowItem
-
-
方法详细资料
-
releaseUsing
public boolean releaseUsing(ItemStack p_40667_, Level p_40668_, LivingEntity p_40669_, int p_40670_) - 覆盖:
releaseUsing
在类中Item
-
shootProjectile
protected void shootProjectile(LivingEntity p_331372_, Projectile p_332000_, int p_330631_, float p_331251_, float p_331199_, float p_330857_, @Nullable LivingEntity p_331572_) - 指定者:
shootProjectile
在类中ProjectileWeaponItem
-
getPowerForTime
public static float getPowerForTime(int p_40662_) -
getUseDuration
- 覆盖:
getUseDuration
在类中Item
-
getUseAnimation
- 覆盖:
getUseAnimation
在类中Item
-
use
-
getAllSupportedProjectiles
-
getDefaultProjectileRange
public int getDefaultProjectileRange()
-