Package net.minecraft.item
Class AxeItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.ToolItem
net.minecraft.item.MiningToolItem
net.minecraft.item.AxeItem
- All Implemented Interfaces:
ItemConvertible,Vanishable
public class AxeItem extends MiningToolItem
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description private static Set<Block>EFFECTIVE_BLOCKSprivate static Set<Material>field_23139protected static Map<Block,Block>STRIPPED_BLOCKSFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, group, RANDOM -
Constructor Summary
Constructors Modifier Constructor Description protectedAxeItem(ToolMaterial material, float attackDamage, float attackSpeed, Item.Settings settings) -
Method Summary
Modifier and Type Method Description floatgetMiningSpeedMultiplier(ItemStack stack, BlockState state)ActionResultuseOnBlock(ItemUsageContext context)Methods inherited from class net.minecraft.item.MiningToolItem
getAttackDamage, getAttributeModifiers, postHit, postMineMethods inherited from class net.minecraft.item.Item
appendStacks, appendTooltip, asItem, byRawId, canMine, damage, finishUsing, fromBlock, getDrinkSound, getEatSound, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMaxUseTime, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getStackForRender, getTranslationKey, getTranslationKey, getUseAction, hasEnchantmentGlint, hasRecipeRemainder, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFireproof, isFood, isIn, isIn, isNetworkSynced, isUsedOnRelease, onCraft, onStoppedUsing, postProcessTag, rayTrace, shouldSyncTagToClient, toString, usageTick, use, useOnEntity
-
Field Details
-
Constructor Details
-
AxeItem
protected AxeItem(ToolMaterial material, float attackDamage, float attackSpeed, Item.Settings settings)
-
-
Method Details
-
getMiningSpeedMultiplier
- Overrides:
getMiningSpeedMultiplierin classMiningToolItem
-
useOnBlock
- Overrides:
useOnBlockin classItem
-