类 MaceItem
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.MaceItem
- 所有已实现的接口:
FeatureElement
,ItemLike
,IForgeItem
-
嵌套类概要
从类继承的嵌套类/接口 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, 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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private Vec3
calculateImpactPosition
(ServerPlayer p_365711_) boolean
canAttackBlock
(BlockState p_330271_, Level p_332833_, BlockPos p_334020_, Player p_336375_) static boolean
canSmashAttack
(LivingEntity p_345213_) static ItemAttributeModifiers
static Tool
float
getAttackDamageBonus
(Entity p_344513_, float p_333106_, DamageSource p_345351_) getDamageSource
(LivingEntity p_362356_) private static double
getKnockbackPower
(Entity p_361841_, LivingEntity p_334129_, Vec3 p_335583_) boolean
hurtEnemy
(ItemStack p_329476_, LivingEntity p_332492_, LivingEntity p_333391_) private static void
private static Predicate
<LivingEntity> knockbackPredicate
(Entity p_334480_, Entity p_363363_) void
postHurtEnemy
(ItemStack p_344750_, LivingEntity p_344000_, LivingEntity p_342605_) 从类继承的方法 net.minecraft.world.item.Item
appendHoverText, asItem, builtInRegistryHolder, byBlock, byId, canFitInsideContainerItems, components, finishUsingItem, getBarColor, getBarWidth, getBreakingSound, getCraftingRemainder, getDefaultInstance, getDefaultMaxStackSize, getDescriptionId, getDestroySpeed, getId, getName, getName, getPlayerPOVHitResult, getRenderPropertiesInternal, getTooltipImage, getUseAnimation, getUseDuration, initializeClient, interactLivingEntity, inventoryTick, isBarVisible, isCorrectToolForDrops, isFoil, mineBlock, 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.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
-
字段详细资料
-
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
-
canAttackBlock
public boolean canAttackBlock(BlockState p_330271_, Level p_332833_, BlockPos p_334020_, Player p_336375_) - 覆盖:
canAttackBlock
在类中Item
-
hurtEnemy
-
calculateImpactPosition
-
postHurtEnemy
- 覆盖:
postHurtEnemy
在类中Item
-
getAttackDamageBonus
- 覆盖:
getAttackDamageBonus
在类中Item
-
knockback
-
knockbackPredicate
-
getKnockbackPower
-
canSmashAttack
-
getDamageSource
- 覆盖:
getDamageSource
在类中Item
-