Package net.minecraft.item
Class VariantBlockItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.BlockItem
net.minecraft.item.VariantBlockItem
public class VariantBlockItem extends BlockItem
- Mappings:
Namespace Name official aaeintermediary net/minecraft/class_7named net/minecraft/item/VariantBlockItem
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.ToolMaterialType -
Field Summary
Fields Modifier and Type Field Description protected Function<ItemStack,String>nameFunctionprotected BlockvariantBlockFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, damageable, handheld, maxCount, RANDOM, REGISTRY -
Constructor Summary
Constructors Constructor Description VariantBlockItem(Block block, Block variantBlock, Function<ItemStack,String> nameFunction)VariantBlockItem(Block block, Block block2, String[] string) -
Method Summary
Modifier and Type Method Description 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, getDisplayColor, 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
-
variantBlock
- Mappings:
Namespace Name Mixin selector official bLaae;b:Lafh;intermediary field_35Lnet/minecraft/class_7;field_35:Lnet/minecraft/class_160;named variantBlockLnet/minecraft/item/VariantBlockItem;variantBlock:Lnet/minecraft/block/Block;
-
nameFunction
- Mappings:
Namespace Name Mixin selector official cLaae;c:Lcom/google/common/base/Function;intermediary field_36Lnet/minecraft/class_7;field_36:Lcom/google/common/base/Function;named nameFunctionLnet/minecraft/item/VariantBlockItem;nameFunction:Lcom/google/common/base/Function;
-
-
Constructor Details
-
VariantBlockItem
- Mappings:
Namespace Name Mixin selector official <init>Laae;<init>(Lafh;Lafh;Lcom/google/common/base/Function;)Vintermediary <init>Lnet/minecraft/class_7;<init>(Lnet/minecraft/class_160;Lnet/minecraft/class_160;Lcom/google/common/base/Function;)Vnamed <init>Lnet/minecraft/item/VariantBlockItem;<init>(Lnet/minecraft/block/Block;Lnet/minecraft/block/Block;Lcom/google/common/base/Function;)V
-
VariantBlockItem
-
-
Method Details
-
getMeta
public int getMeta(int 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;
-