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
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_ID, BASE_ATTACK_SPEED_ID, 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
(LivingEntity p_344836_) static ItemAttributeModifiers
static Tool
float
getAttackDamageBonus
(Entity p_344900_, float p_335575_, DamageSource p_344972_) 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_) void
postHurtEnemy
(ItemStack p_345716_, LivingEntity p_345817_, LivingEntity p_346003_) 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
canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getDefaultAttributeModifiers, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, isPrimaryItemFor, makesPiglinsNeutral, onAnimalArmorTick, 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
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_333875_, Level p_333847_, BlockPos p_334073_, Player p_334042_) - Overrides:
canAttackBlock
in classItem
-
getEnchantmentValue
public int getEnchantmentValue()- Overrides:
getEnchantmentValue
in classItem
-
hurtEnemy
-
postHurtEnemy
- Overrides:
postHurtEnemy
in classItem
-
isValidRepairItem
- Overrides:
isValidRepairItem
in classItem
-
getAttackDamageBonus
- Overrides:
getAttackDamageBonus
in classItem
-
knockback
-
knockbackPredicate
-
getKnockbackPower
-
canSmashAttack
-