Package net.minecraft.world.item
Class MaceItem
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.MaceItem
- All Implemented Interfaces:
FeatureElement,ItemLike,IForgeItem
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.Item
Item.Properties, Item.TooltipContext -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final floatstatic final floatprivate static final floatprivate static final floatstatic final floatFields inherited from class net.minecraft.world.item.Item
ABSOLUTE_MAX_STACK_SIZE, BASE_ATTACK_DAMAGE_ID, BASE_ATTACK_SPEED_ID, BY_BLOCK, DEFAULT_MAX_STACK_SIZE, MAX_BAR_WIDTH, STREAM_CODECFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanAttackBlock(BlockState p_330271_, Level p_332833_, BlockPos p_334020_, Player p_336375_) static booleancanSmashAttack(LivingEntity p_345213_) static ItemAttributeModifiersstatic ToolfloatgetAttackDamageBonus(Entity p_344513_, float p_333106_, DamageSource p_345351_) intprivate static doublegetKnockbackPower(Player p_328672_, LivingEntity p_334129_, Vec3 p_335583_) booleanhurtEnemy(ItemStack p_329476_, LivingEntity p_332492_, LivingEntity p_333391_) booleanisValidRepairItem(ItemStack p_335618_, ItemStack p_332323_) private static voidprivate static Predicate<LivingEntity> knockbackPredicate(Player p_334836_, Entity p_334480_) voidpostHurtEnemy(ItemStack p_344750_, LivingEntity p_344000_, LivingEntity p_342605_) Methods inherited from class net.minecraft.world.item.Item
appendHoverText, asItem, builtInRegistryHolder, byBlock, byId, canFitInsideContainerItems, components, finishUsingItem, getBarColor, getBarWidth, getBreakingSound, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDefaultMaxStackSize, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getId, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRenderPropertiesInternal, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, initializeClient, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isEnchantable, isFoil, mineBlock, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, requiredFeatures, toString, use, useOn, useOnRelease, verifyComponentsAfterLoadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods inherited from interface net.minecraftforge.common.extensions.IForgeItem
canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, doesSneakBypassUse, elytraFlightTick, getArmorTexture, getAttributeModifiers, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDefaultTooltipHideFlags, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getHighlightTip, getSweepHitBox, hasCraftingRemainingItem, hasCustomEntity, isBookEnchantable, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onInventoryTick, onItemUseFirst, onLeftClickEntity, onStopUsing, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
-
Field Details
-
DEFAULT_ATTACK_DAMAGE
private static final int DEFAULT_ATTACK_DAMAGE- See Also:
-
DEFAULT_ATTACK_SPEED
private static final float DEFAULT_ATTACK_SPEED- See Also:
-
SMASH_ATTACK_FALL_THRESHOLD
public static final float SMASH_ATTACK_FALL_THRESHOLD- See Also:
-
SMASH_ATTACK_HEAVY_THRESHOLD
private static final float SMASH_ATTACK_HEAVY_THRESHOLD- See Also:
-
SMASH_ATTACK_KNOCKBACK_RADIUS
public static final float SMASH_ATTACK_KNOCKBACK_RADIUS- See Also:
-
SMASH_ATTACK_KNOCKBACK_POWER
private static final float SMASH_ATTACK_KNOCKBACK_POWER- See Also:
-
-
Constructor Details
-
MaceItem
-
-
Method Details
-
createAttributes
-
createToolProperties
-
canAttackBlock
public boolean canAttackBlock(BlockState p_330271_, Level p_332833_, BlockPos p_334020_, Player p_336375_) - Overrides:
canAttackBlockin classItem
-
getEnchantmentValue
public int getEnchantmentValue()- Overrides:
getEnchantmentValuein classItem
-
hurtEnemy
-
postHurtEnemy
- Overrides:
postHurtEnemyin classItem
-
isValidRepairItem
- Overrides:
isValidRepairItemin classItem
-
getAttackDamageBonus
- Overrides:
getAttackDamageBonusin classItem
-
knockback
-
knockbackPredicate
-
getKnockbackPower
-
canSmashAttack
-