类 MaceItem
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.MaceItem
- 所有已实现的接口:
FeatureElement
,ItemLike
,IItemExtension
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.item.Item
Item.Properties, Item.TooltipContext
-
字段概要
字段修饰符和类型字段说明private static final int
private static final float
static final float
private static final float
private static final float
static final float
从类继承的字段 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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private Vec3
calculateImpactPosition
(ServerPlayer p_365384_) static boolean
canSmashAttack
(LivingEntity p_344836_) static ItemAttributeModifiers
static Tool
float
getAttackDamageBonus
(Entity p_344900_, float p_335575_, DamageSource p_344972_) getDamageSource
(LivingEntity p_372868_) private static double
getKnockbackPower
(Entity p_364341_, LivingEntity p_338630_, Vec3 p_338866_) void
hurtEnemy
(ItemStack p_334046_, LivingEntity p_333712_, LivingEntity p_333812_) private static void
private static Predicate
<LivingEntity> knockbackPredicate
(Entity p_338698_, Entity p_361210_) void
postHurtEnemy
(ItemStack p_345716_, LivingEntity p_345817_, LivingEntity p_346003_) 从类继承的方法 net.minecraft.world.item.Item
appendHoverText, asItem, builtInRegistryHolder, byBlock, byId, canDestroyBlock, canFitInsideContainerItems, components, finishUsingItem, getBarColor, getBarWidth, getCraftingRemainder, getDefaultInstance, getDefaultMaxStackSize, getDescriptionId, getDestroySpeed, getId, getName, getName, getPlayerPOVHitResult, getTooltipImage, getUseAnimation, getUseDuration, interactLivingEntity, inventoryTick, isBarVisible, isCombineRepairable, isCorrectToolForDrops, isFoil, mineBlock, modifyDefaultComponentsFrom, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, 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.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
-
字段详细资料
-
DEFAULT_ATTACK_DAMAGE
private static final int DEFAULT_ATTACK_DAMAGE- 另请参阅:
-
DEFAULT_ATTACK_SPEED
private static final float DEFAULT_ATTACK_SPEED- 另请参阅:
-
SMASH_ATTACK_FALL_THRESHOLD
public static final float SMASH_ATTACK_FALL_THRESHOLD- 另请参阅:
-
SMASH_ATTACK_HEAVY_THRESHOLD
private static final float SMASH_ATTACK_HEAVY_THRESHOLD- 另请参阅:
-
SMASH_ATTACK_KNOCKBACK_RADIUS
public static final float SMASH_ATTACK_KNOCKBACK_RADIUS- 另请参阅:
-
SMASH_ATTACK_KNOCKBACK_POWER
private static final float SMASH_ATTACK_KNOCKBACK_POWER- 另请参阅:
-
-
构造器详细资料
-
MaceItem
-
-
方法详细资料
-
createAttributes
-
createToolProperties
-
hurtEnemy
-
calculateImpactPosition
-
postHurtEnemy
- 覆盖:
postHurtEnemy
在类中Item
-
getAttackDamageBonus
- 覆盖:
getAttackDamageBonus
在类中Item
-
knockback
-
knockbackPredicate
-
getKnockbackPower
-
canSmashAttack
-
getDamageSource
- 覆盖:
getDamageSource
在类中Item
-