Package net.minecraft.item
Class LeavesItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.BlockItem
net.minecraft.item.LeavesItem
public class LeavesItem extends BlockItem
- Mappings:
Namespace Name official aaaintermediary net/minecraft/class_3named net/minecraft/item/LeavesItem
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.ToolMaterialType -
Field Summary
Fields Modifier and Type Field Description private LeavesBlockleavesBlockFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, damageable, handheld, maxCount, RANDOM, REGISTRY -
Constructor Summary
Constructors Constructor Description LeavesItem(LeavesBlock blockl) -
Method Summary
Modifier and Type Method Description intgetDisplayColor(ItemStack stack, int color)intgetMeta(int i)StringgetTranslationKey(ItemStack stack)Methods inherited from class net.minecraft.item.BlockItem
appendItemStacks, getBlock, getItemGroup, getTranslationKey, method_8182, setBlockEntityTag, setTranslationKey, useMethods inherited from class net.minecraft.item.Item
appendTooltip, byRawId, canRepair, canUseOnEntity, fromBlock, getAttributeModifierMap, getDisplayName, getEnchantability, getFromId, getItemstackTranslatedName, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getRarity, getRawId, getRecipeRemainder, getStatusEffectString, getUseAction, hasEnchantmentGlint, hasStatusEffectString, hasSubTypes, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFood, isHandheld, isNetworkSynced, isUnbreakable, onBlockBroken, onCraft, onEntityHit, onFinishUse, onHit, onStartUse, onUseStopped, postProcessTag, registerBlockItem, setHandheld, setItemGroup, setMaxCount, setMaxDamage, setRecipeRemainder, setStatusEffectString, setUnbreakable, setup, shouldRotate, shouldSyncTagToClient
-
Field Details
-
leavesBlock
- Mappings:
Namespace Name Mixin selector official bLaaa;b:Lahs;intermediary field_31Lnet/minecraft/class_3;field_31:Lnet/minecraft/class_240;named leavesBlockLnet/minecraft/item/LeavesItem;leavesBlock:Lnet/minecraft/block/LeavesBlock;
-
-
Constructor Details
-
LeavesItem
- Mappings:
Namespace Name Mixin selector official <init>Laaa;<init>(Lahs;)Vintermediary <init>Lnet/minecraft/class_3;<init>(Lnet/minecraft/class_240;)Vnamed <init>Lnet/minecraft/item/LeavesItem;<init>(Lnet/minecraft/block/LeavesBlock;)V
-
-
Method Details
-
getMeta
public int getMeta(int i) -
getDisplayColor
- Overrides:
getDisplayColorin classItem- Mappings:
Namespace Name Mixin selector official aLzw;a(Lzx;I)Iintermediary method_8257Lnet/minecraft/class_2054;method_8257(Lnet/minecraft/class_2056;I)Inamed getDisplayColorLnet/minecraft/item/Item;getDisplayColor(Lnet/minecraft/item/ItemStack;I)I
-
getTranslationKey
- Overrides:
getTranslationKeyin classBlockItem- Mappings:
Namespace Name Mixin selector official e_Lzw;e_(Lzx;)Ljava/lang/String;intermediary method_8286Lnet/minecraft/class_2054;method_8286(Lnet/minecraft/class_2056;)Ljava/lang/String;named getTranslationKeyLnet/minecraft/item/Item;getTranslationKey(Lnet/minecraft/item/ItemStack;)Ljava/lang/String;
-