Package net.minecraft.item
Class ToolItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.ToolItem
- Direct Known Subclasses:
AxeItem,PickaxeItem,ShovelItem
- Mappings:
Namespace Name intermediary net/minecraft/class_632glue class_91server cjclient dqnamed net/minecraft/item/ToolItem
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate Block[]private floatprotected ToolMaterialFields inherited from class net.minecraft.item.Item
APPLE, ARROW, BED, BOAT, BONE, BOOK, BOW, BOWL, BREAD, BRICK, BUCKET, CAKE, CHAIN_BOOTS, CHAIN_CHESTPLATE, CHAIN_HELMET, CHAIN_LEGGINGS, CHEST_MINECART, CLAY, CLOCK, COAL, COMPASS, COOKED_FISH, COOKED_PORKCHOP, COOKIE, DIAMOND, DIAMOND_AXE, DIAMOND_BOOTS, DIAMOND_CHESTPLATE, DIAMOND_HELMET, DIAMOND_HOE, DIAMOND_LEGGINGS, DIAMOND_PICKAXE, DIAMOND_SHOVEL, DIAMOND_SWORD, DYE, EGG, FEATHER, FISHING_ROD, FLINT, FLINT_AND_STEEL, fuel, FURNACE_MINECART, GLOWSTONE_DUST, GOLD_INGOT, GOLDEN_APPLE, GOLDEN_AXE, GOLDEN_BOOTS, GOLDEN_CHESTPLATE, GOLDEN_HELMET, GOLDEN_HOE, GOLDEN_LEGGINGS, GOLDEN_PICKAXE, GOLDEN_SHOVEL, GOLDEN_SWORD, GUNPOWDER, handheld, id, IRON_AXE, IRON_BOOTS, IRON_CHESTPLATE, IRON_DOOR, IRON_HELMET, IRON_HOE, IRON_INGOT, IRON_LEGGINGS, IRON_PICKAXE, IRON_SHOVEL, IRON_SWORD, ITEMS, LAVA_BUCKET, LEATHER, LEATHER_BOOTS, LEATHER_CHESTPLATE, LEATHER_HELMET, LEATHER_LEGGINGS, MAP, maxCount, MILK_BUCKET, MINECART, MUSHROOM_STEW, PAINTING, PAPER, random, RAW_FISH, RAW_PORKCHOP, RECORD_CAT, RECORD_THIRTEEN, REDSTONE, REPEATER, SADDLE, SEEDS, SHEARS, SIGN, SLIMEBALL, SNOWBALL, STICK, STONE_HATCHET, STONE_HOE, STONE_PICKAXE, STONE_SHOVEL, STONE_SWORD, STRING, SUGAR, SUGAR_CANE, texturePosition, WATER_BUCKET, WHEAT, WOODEN_AXE, WOODEN_DOOR, WOODEN_HOE, WOODEN_PICKAXE, WOODEN_SHOVEL, WOODEN_SWORD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedToolItem(int id, int damageBoost, ToolMaterial toolMaterial, Block[] effectiveOn) -
Method Summary
Modifier and TypeMethodDescriptionintgetDamageOnEntity(Entity entity) booleanfloatgetMiningSpeedMultiplier(ItemStack stack, Block block) booleanpostHit(ItemStack stack, LivingEntity livingEntity, LivingEntity livingEntity2) booleanpostMine(ItemStack stack, int blockId, int x, int y, int z, LivingEntity livingEntity) Methods inherited from class net.minecraft.item.Item
getCraftingReturnItem, getMaxCount, getMaxDamage, getTranslatedName, getTranslationKey, getTranslationKey, hasCraftingReturnItem, inventoryTick, isSuitableFor, method_439, method_440, method_441, method_445, method_449, method_458, method_462, method_465, method_470, onCraft, setCraftingReturnItem, setFuel, setHandheld, setMaxCount, setMaxDamage, setTexturePosition, setTranslationKey, use, useOnBlock, useOnEntity
-
Field Details
-
effectiveOnBlocks
- Mappings:
Namespace Name Mixin selector intermediary field_2712Lnet/minecraft/class_632;field_2712:[Lnet/minecraft/class_17;glue field_189Lclass_91;field_189:[Lclass_507;server bkLcj;bk:[Lna;client bkLdq;bk:[Luu;named effectiveOnBlocksLnet/minecraft/item/ToolItem;effectiveOnBlocks:[Lnet/minecraft/block/Block;
-
miningSpeed
private float miningSpeed- Mappings:
Namespace Name Mixin selector intermediary field_2713Lnet/minecraft/class_632;field_2713:Fglue field_190Lclass_91;field_190:Fserver blLcj;bl:Fclient blLdq;bl:Fnamed miningSpeedLnet/minecraft/item/ToolItem;miningSpeed:F
-
damage
private int damage- Mappings:
Namespace Name Mixin selector intermediary field_2714Lnet/minecraft/class_632;field_2714:Iglue field_191Lclass_91;field_191:Iserver bmLcj;bm:Iclient bmLdq;bm:Inamed damageLnet/minecraft/item/ToolItem;damage:I
-
toolMaterial
- Mappings:
Namespace Name Mixin selector intermediary field_2711Lnet/minecraft/class_632;field_2711:Lnet/minecraft/class_428;glue field_188Lclass_91;field_188:Lclass_47;server aLcj;a:Lbb;client aLdq;a:Lbu;named toolMaterialLnet/minecraft/item/ToolItem;toolMaterial:Lnet/minecraft/item/ToolMaterial;
-
-
Constructor Details
-
ToolItem
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_632;<init>(IILnet/minecraft/class_428;[Lnet/minecraft/class_17;)Vglue <init>Lclass_91;<init>(IILclass_47;[Lclass_507;)Vserver <init>Lcj;<init>(IILbb;[Lna;)Vclient <init>Ldq;<init>(IILbu;[Luu;)Vnamed <init>Lnet/minecraft/item/ToolItem;<init>(IILnet/minecraft/item/ToolMaterial;[Lnet/minecraft/block/Block;)V
-
-
Method Details
-
getMiningSpeedMultiplier
- Overrides:
getMiningSpeedMultiplierin classItem- Mappings:
Namespace Name Mixin selector intermediary method_438Lnet/minecraft/class_124;method_438(Lnet/minecraft/class_31;Lnet/minecraft/class_17;)Fglue method_103Lclass_166;method_103(Lclass_224;Lclass_507;)Fserver aLej;a(Lfy;Lna;)Fclient aLgm;a(Liz;Luu;)Fnamed getMiningSpeedMultiplierLnet/minecraft/item/Item;getMiningSpeedMultiplier(Lnet/minecraft/item/ItemStack;Lnet/minecraft/block/Block;)F
-
postHit
- Overrides:
postHitin classItem- Mappings:
Namespace Name Mixin selector intermediary method_446Lnet/minecraft/class_124;method_446(Lnet/minecraft/class_31;Lnet/minecraft/class_127;Lnet/minecraft/class_127;)Zglue method_262Lclass_166;method_262(Lclass_224;Lclass_283;Lclass_283;)Zserver aLej;a(Lfy;Lhl;Lhl;)Zclient aLgm;a(Liz;Lls;Lls;)Znamed postHitLnet/minecraft/item/Item;postHit(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)Z
-
postMine
public boolean postMine(ItemStack stack, int blockId, int x, int y, int z, LivingEntity livingEntity) - Overrides:
postMinein classItem- Mappings:
Namespace Name Mixin selector intermediary method_437Lnet/minecraft/class_124;method_437(Lnet/minecraft/class_31;IIIILnet/minecraft/class_127;)Zglue method_102Lclass_166;method_102(Lclass_224;IIIILclass_283;)Zserver aLej;a(Lfy;IIIILhl;)Zclient aLgm;a(Liz;IIIILls;)Znamed postMineLnet/minecraft/item/Item;postMine(Lnet/minecraft/item/ItemStack;IIIILnet/minecraft/entity/LivingEntity;)Z
-
getDamageOnEntity
- Overrides:
getDamageOnEntityin classItem- Mappings:
Namespace Name Mixin selector intermediary method_447Lnet/minecraft/class_124;method_447(Lnet/minecraft/class_57;)Iglue method_263Lclass_166;method_263(Lclass_450;)Iserver aLej;a(Llq;)Iclient aLgm;a(Lsn;)Inamed getDamageOnEntityLnet/minecraft/item/Item;getDamageOnEntity(Lnet/minecraft/entity/Entity;)I
-
getIsHandheld
- Overrides:
getIsHandheldin classItem- Mappings:
Namespace Name Mixin selector intermediary method_448Lnet/minecraft/class_124;method_448()Zglue method_306Lclass_166;method_306()Zserver method_448Lej;method_448()Zclient bLgm;b()Znamed getIsHandheldLnet/minecraft/item/Item;getIsHandheld()Z
-