public class GenericHammer extends HammerItem
| Constructor and Description |
|---|
GenericHammer(net.minecraft.item.IItemTier tier)
Initializes the hammer.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescriptionId() |
float |
getDestroySpeed(net.minecraft.item.ItemStack stack,
net.minecraft.block.BlockState state)
Returns the strength of the stack against a given block.
|
net.minecraft.util.ActionResultType |
useOn(net.minecraft.item.ItemUseContext context) |
isCorrectToolForDrops, mineBlockgetAttackDamage, getDefaultAttributeModifiers, hurtEnemygetEnchantmentValue, getTier, isValidRepairItemallowdedIn, appendHoverText, asItem, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, fillItemCategory, finishUsingItem, getCraftingRemainingItem, getDefaultInstance, getDescription, getDescriptionId, getDrinkingSound, getEatingSound, getFoodProperties, getHarvestLevel, getId, getItemCategory, getItemStackTileEntityRenderer, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getTags, getToolTypes, getUseAnimation, getUseDuration, hasCraftingRemainingItem, interactLivingEntity, inventoryTick, is, isComplex, isEdible, isEnchantable, isFireResistant, isFoil, isRepairable, onCraftedBy, onUseTick, releaseUsing, shouldOverrideMultiplayerNbt, toString, use, useOnRelease, verifyTagAfterLoadgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canHarvestBlock, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getItem, getItemEnchantability, getItemStackLimit, getMaxDamage, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, initCapabilities, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, isShield, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, showDurabilityBarpublic GenericHammer(net.minecraft.item.IItemTier tier)
public java.lang.String getDescriptionId()
getDescriptionId in class net.minecraft.item.Itempublic float getDestroySpeed(net.minecraft.item.ItemStack stack,
net.minecraft.block.BlockState state)
HammerItemgetDestroySpeed in class HammerItempublic net.minecraft.util.ActionResultType useOn(net.minecraft.item.ItemUseContext context)
useOn in class net.minecraft.item.Item