public class HammerItem
extends net.minecraft.item.ToolItem
Constructor and Description |
---|
HammerItem(net.minecraft.item.IItemTier tier) |
Modifier and Type | Method and Description |
---|---|
float |
getDestroySpeed(net.minecraft.item.ItemStack stack,
net.minecraft.block.BlockState state)
Returns the strength of the stack against a given block.
|
boolean |
isCorrectToolForDrops(net.minecraft.block.BlockState state)
Returns if the item (tool) can harvest results from the block type.
|
boolean |
mineBlock(net.minecraft.item.ItemStack stack,
net.minecraft.world.World world,
net.minecraft.block.BlockState blockState,
net.minecraft.util.math.BlockPos blockPos,
net.minecraft.entity.LivingEntity entity) |
getAttackDamage, getDefaultAttributeModifiers, hurtEnemy
getEnchantmentValue, getTier, isValidRepairItem
allowdedIn, appendHoverText, asItem, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, fillItemCategory, finishUsingItem, getCraftingRemainingItem, getDefaultInstance, getDescription, getDescriptionId, 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, useOn, useOnRelease, verifyTagAfterLoad
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canApplyAtEnchantingTable, 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, showDurabilityBar
public boolean isCorrectToolForDrops(net.minecraft.block.BlockState state)
isCorrectToolForDrops
in class net.minecraft.item.Item
public float getDestroySpeed(net.minecraft.item.ItemStack stack, net.minecraft.block.BlockState state)
getDestroySpeed
in class net.minecraft.item.ToolItem
public boolean mineBlock(net.minecraft.item.ItemStack stack, net.minecraft.world.World world, net.minecraft.block.BlockState blockState, net.minecraft.util.math.BlockPos blockPos, net.minecraft.entity.LivingEntity entity)
mineBlock
in class net.minecraft.item.ToolItem