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 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, canRepair, DEFAULT_MAX_STACK_SIZE, MAX_BAR_WIDTH
Fields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canAttackBlock
(BlockState p_333875_, Level p_333847_, BlockPos p_334073_, Player p_334042_) static boolean
canSmashAttack
(Player p_338434_) static ItemAttributeModifiers
static Tool
float
getAttackDamageBonus
(Player p_335568_, float p_335575_) int
private static double
getKnockbackPower
(Player p_338265_, LivingEntity p_338630_, Vec3 p_338866_) boolean
hurtEnemy
(ItemStack p_334046_, LivingEntity p_333712_, LivingEntity p_333812_) boolean
isValidRepairItem
(ItemStack p_334031_, ItemStack p_334058_) private static void
private static Predicate
<LivingEntity> knockbackPredicate
(Player p_338613_, Entity p_338698_) 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, isRepairable, mineBlock, modifyDefaultComponentsFrom, 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.neoforged.neoforge.common.extensions.IItemExtension
canApplyAtEnchantingTable, 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_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_333875_, Level p_333847_, BlockPos p_334073_, Player p_334042_) - 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
-