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,- IItemExtension
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.item.ItemItem.Properties, Item.TooltipContext
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final intprivate static final floatprivate static final floatprivate static final floatprivate static final floatprivate static final floatstatic final floatFields inherited from class net.minecraft.world.item.ItemABSOLUTE_MAX_STACK_SIZE, BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, canRepair, DEFAULT_MAX_STACK_SIZE, MAX_BAR_WIDTHFields inherited from interface net.minecraft.world.flag.FeatureElementFILTERED_REGISTRIES
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanAttackBlock(BlockState p_333875_, Level p_333847_, BlockPos p_334073_, Player p_334042_) static booleancanSmashAttack(Player p_338434_) static ItemAttributeModifiersstatic ToolfloatgetAttackDamageBonus(Player p_335568_, float p_335575_) intprivate static doublegetKnockbackPower(Player p_338265_, LivingEntity p_338630_, Vec3 p_338866_) booleanhurtEnemy(ItemStack p_334046_, LivingEntity p_333712_, LivingEntity p_333812_) booleanisValidRepairItem(ItemStack p_334031_, ItemStack p_334058_) private static voidprivate static Predicate<LivingEntity> knockbackPredicate(Player p_338613_, Entity p_338698_) Methods inherited from class net.minecraft.world.item.ItemappendHoverText, 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, isRepairable, mineBlock, modifyDefaultComponentsFrom, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, requiredFeatures, toString, use, useOn, useOnRelease, verifyComponentsAfterLoadMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElementisEnabledMethods inherited from interface net.neoforged.neoforge.common.extensions.IItemExtensioncanApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, getAttributeModifiers, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onAnimalArmorTick, onArmorTick, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onItemUseFirst, onLeftClickEntity, onStopUsing, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
- 
Field Details- 
DEFAULT_ATTACK_DAMAGEprivate static final int DEFAULT_ATTACK_DAMAGE- See Also:
 
- 
DEFAULT_ATTACK_SPEEDprivate static final float DEFAULT_ATTACK_SPEED- See Also:
 
- 
SMASH_ATTACK_FALL_THRESHOLDprivate static final float SMASH_ATTACK_FALL_THRESHOLD- See Also:
 
- 
SMASH_ATTACK_HEAVY_THRESHOLDprivate static final float SMASH_ATTACK_HEAVY_THRESHOLD- See Also:
 
- 
SMASH_ATTACK_KNOCKBACK_RADIUSpublic static final float SMASH_ATTACK_KNOCKBACK_RADIUS- See Also:
 
- 
SMASH_ATTACK_KNOCKBACK_POWERprivate static final float SMASH_ATTACK_KNOCKBACK_POWER- See Also:
 
- 
SMASH_ATTACK_FALL_DISTANCE_MULTIPLIERprivate static final float SMASH_ATTACK_FALL_DISTANCE_MULTIPLIER- See Also:
 
 
- 
- 
Constructor Details- 
MaceItem
 
- 
- 
Method Details- 
createAttributes
- 
createToolProperties
- 
canAttackBlockpublic boolean canAttackBlock(BlockState p_333875_, Level p_333847_, BlockPos p_334073_, Player p_334042_) - Overrides:
- canAttackBlockin class- Item
 
- 
getEnchantmentValuepublic int getEnchantmentValue()- Overrides:
- getEnchantmentValuein class- Item
 
- 
hurtEnemy
- 
isValidRepairItem- Overrides:
- isValidRepairItemin class- Item
 
- 
getAttackDamageBonus- Overrides:
- getAttackDamageBonusin class- Item
 
- 
knockback
- 
knockbackPredicate
- 
getKnockbackPower
- 
canSmashAttack
 
-