Package net.minecraft.item
Class GrassBlockItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.BlockItem
net.minecraft.item.GrassBlockItem
- Direct Known Subclasses:
LilyPadItem
public class GrassBlockItem extends BlockItem
- Mappings:
Namespace Name official aazintermediary net/minecraft/class_28named net/minecraft/item/GrassBlockItem
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.ToolMaterialType -
Field Summary
Fields Modifier and Type Field Description private BlockcoloredBlockprivate String[]namesFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, damageable, handheld, maxCount, RANDOM, REGISTRY -
Constructor Summary
Constructors Constructor Description GrassBlockItem(Block coloredBlock, boolean unbreakable) -
Method Summary
Modifier and Type Method Description intgetDisplayColor(ItemStack stack, int color)intgetMeta(int i)StringgetTranslationKey(ItemStack stack)GrassBlockItemsetNamed(String[] names)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
-
coloredBlock
- Mappings:
Namespace Name Mixin selector official bLaaz;b:Lafh;intermediary field_60Lnet/minecraft/class_28;field_60:Lnet/minecraft/class_160;named coloredBlockLnet/minecraft/item/GrassBlockItem;coloredBlock:Lnet/minecraft/block/Block;
-
names
- Mappings:
Namespace Name Mixin selector official cLaaz;c:[Ljava/lang/String;intermediary field_61Lnet/minecraft/class_28;field_61:[Ljava/lang/String;named namesLnet/minecraft/item/GrassBlockItem;names:[Ljava/lang/String;
-
-
Constructor Details
-
GrassBlockItem
- Mappings:
Namespace Name Mixin selector official <init>Laaz;<init>(Lafh;Z)Vintermediary <init>Lnet/minecraft/class_28;<init>(Lnet/minecraft/class_160;Z)Vnamed <init>Lnet/minecraft/item/GrassBlockItem;<init>(Lnet/minecraft/block/Block;Z)V
-
-
Method Details
-
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
-
getMeta
public int getMeta(int i) -
setNamed
- Mappings:
Namespace Name Mixin selector official aLaaz;a([Ljava/lang/String;)Laaz;intermediary method_26Lnet/minecraft/class_28;method_26([Ljava/lang/String;)Lnet/minecraft/class_28;named setNamedLnet/minecraft/item/GrassBlockItem;setNamed([Ljava/lang/String;)Lnet/minecraft/item/GrassBlockItem;
-
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;
-