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
Modifier and TypeFieldDescriptionprivate static final int
private static final float
private static final float
private static final float
private static final float
private static final float
static final float
Fields inherited from class net.minecraft.world.item.Item
ABSOLUTE_MAX_STACK_SIZE, BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, DEFAULT_MAX_STACK_SIZE, MAX_BAR_WIDTH, STREAM_CODEC
Fields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canAttackBlock
(BlockState p_330271_, Level p_332833_, BlockPos p_334020_, Player p_336375_) static boolean
canSmashAttack
(Player p_328263_) static ItemAttributeModifiers
static Tool
float
getAttackDamageBonus
(Player p_336257_, float p_333106_) int
private static double
getKnockbackPower
(Player p_328672_, LivingEntity p_334129_, Vec3 p_335583_) boolean
hurtEnemy
(ItemStack p_329476_, LivingEntity p_332492_, LivingEntity p_333391_) boolean
isValidRepairItem
(ItemStack p_335618_, ItemStack p_332323_) private static void
private static Predicate
<LivingEntity> knockbackPredicate
(Player p_334836_, Entity p_334480_) 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, verifyComponentsAfterLoad
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabled
Methods 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, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getHighlightTip, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, isBookEnchantable, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onArmorTick, 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
private 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:
-
SMASH_ATTACK_FALL_DISTANCE_MULTIPLIER
private static final float SMASH_ATTACK_FALL_DISTANCE_MULTIPLIER- 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:
canAttackBlock
in classItem
-
getEnchantmentValue
public int getEnchantmentValue()- Overrides:
getEnchantmentValue
in classItem
-
hurtEnemy
-
isValidRepairItem
- Overrides:
isValidRepairItem
in classItem
-
getAttackDamageBonus
- Overrides:
getAttackDamageBonus
in classItem
-
knockback
-
knockbackPredicate
-
getKnockbackPower
-
canSmashAttack
-