类 ProjectileWeaponItem
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.ProjectileWeaponItem
- 所有已实现的接口:
FeatureElement
,ItemLike
,IForgeItem
- 直接已知子类:
BowItem
,CrossbowItem
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.item.Item
Item.Properties, Item.TooltipContext
-
字段概要
字段修饰符和类型字段说明从类继承的字段 net.minecraft.world.item.Item
ABSOLUTE_MAX_STACK_SIZE, BASE_ATTACK_DAMAGE_ID, BASE_ATTACK_SPEED_ID, BY_BLOCK, CODEC, DEFAULT_MAX_STACK_SIZE, descriptionId, MAX_BAR_WIDTH, STREAM_CODEC
从接口继承的字段 net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected Projectile
createProjectile
(Level p_333069_, LivingEntity p_334736_, ItemStack p_333680_, ItemStack p_329118_, boolean p_336242_) customArrow
(AbstractArrow arrow) draw
(ItemStack p_329054_, ItemStack p_328618_, LivingEntity p_335616_) abstract int
protected int
getDurabilityUse
(ItemStack p_330687_) static ItemStack
getHeldProjectile
(LivingEntity p_43011_, Predicate<ItemStack> p_43012_) protected void
shoot
(ServerLevel p_344476_, LivingEntity p_332682_, InteractionHand p_333462_, ItemStack p_333670_, List<ItemStack> p_328443_, float p_330956_, float p_333326_, boolean p_332457_, LivingEntity p_328954_) protected abstract void
shootProjectile
(LivingEntity p_330864_, Projectile p_328720_, int p_328740_, float p_335337_, float p_332934_, float p_329948_, LivingEntity p_329516_) protected static ItemStack
useAmmo
(ItemStack p_335938_, ItemStack p_332014_, LivingEntity p_332327_, boolean p_327685_) 从类继承的方法 net.minecraft.world.item.Item
appendHoverText, asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBarColor, getBarWidth, getBreakingSound, getCraftingRemainder, getDamageSource, getDefaultInstance, getDefaultMaxStackSize, getDescriptionId, getDestroySpeed, getId, getName, getName, getPlayerPOVHitResult, getRenderPropertiesInternal, getTooltipImage, getUseAnimation, getUseDuration, hurtEnemy, initializeClient, interactLivingEntity, inventoryTick, isBarVisible, isCorrectToolForDrops, isFoil, mineBlock, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, postHurtEnemy, releaseUsing, requiredFeatures, shouldPrintOpWarning, toString, use, useOn, useOnRelease, verifyComponentsAfterLoad
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 net.minecraft.world.flag.FeatureElement
isEnabled
从接口继承的方法 net.minecraftforge.common.extensions.IForgeItem
canApplyAtEnchantingTable, canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getBurnTime, getCapabilityProvider, getCapabilityProvider, getCraftingRemainder, getCreatorModId, getDefaultTooltipHideFlags, getEntityLifespan, getEquipmentSlot, getHighlightTip, getSweepHitBox, hasCustomEntity, isBookEnchantable, isMonsterDisguise, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onInventoryTick, onItemUseFirst, onLeftClickEntity, onStopUsing, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
-
字段详细资料
-
ARROW_ONLY
-
ARROW_OR_FIREWORK
-
-
构造器详细资料
-
ProjectileWeaponItem
-
-
方法详细资料
-
getSupportedHeldProjectiles
-
getAllSupportedProjectiles
-
getHeldProjectile
-
getDefaultProjectileRange
public abstract int getDefaultProjectileRange() -
shoot
protected void shoot(ServerLevel p_344476_, LivingEntity p_332682_, InteractionHand p_333462_, ItemStack p_333670_, List<ItemStack> p_328443_, float p_330956_, float p_333326_, boolean p_332457_, @Nullable LivingEntity p_328954_) -
getDurabilityUse
-
shootProjectile
protected abstract void shootProjectile(LivingEntity p_330864_, Projectile p_328720_, int p_328740_, float p_335337_, float p_332934_, float p_329948_, @Nullable LivingEntity p_329516_) -
createProjectile
protected Projectile createProjectile(Level p_333069_, LivingEntity p_334736_, ItemStack p_333680_, ItemStack p_329118_, boolean p_336242_) -
draw
protected static List<ItemStack> draw(ItemStack p_329054_, ItemStack p_328618_, LivingEntity p_335616_) -
useAmmo
protected static ItemStack useAmmo(ItemStack p_335938_, ItemStack p_332014_, LivingEntity p_332327_, boolean p_327685_) -
customArrow
-