Package net.minecraft.item
Class BlockItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.BlockItem
- Direct Known Subclasses:
class_1584,GrassBlockItem,LeavesItem,StickyPistonBlockItem,StoneSlabItem,VariantBlockItem,WoolItem
- Mappings:
Namespace Name official zsintermediary net/minecraft/class_1096named net/minecraft/item/BlockItem
-
Field Summary
FieldsFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, damageable, field_6201, field_6941, handheld, maxCount, RANDOM, REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendItemStacks(Item item, ItemGroup group, List list) Registers an item's sub itemsReturns the itemgroup that the item is inReturns the translation key of the current ItemgetTranslationKey(ItemStack stack) method_3343(int int2) booleanmethod_3355(ItemStack itemStack, PlayerEntity playerEntity, World world, int int2, int int3, int int4, int int5, float float2, float float3, float float4) booleanmethod_3463(World world, int int2, int int3, int int4, int int5, PlayerEntity playerEntity, ItemStack itemStack) voidmethod_5462(TextureRegistry textureRegistry) intsetTranslationKey(String string) Sets the current item's translation key.Methods inherited from class net.minecraft.item.Item
appendTooltip, byRawId, canRepair, canUseOnEntity, fromBlock, getAttributeModifierMap, getDisplayColor, getDisplayName, getEnchantability, getFromId, getItemstackTranslatedName, getMaxCount, getMaxDamage, getMaxUseTime, getMeta, getMiningSpeedMultiplier, getRarity, getRawId, getRecipeRemainder, getStatusEffectString, getUseAction, hasEnchantmentGlint, hasStatusEffectString, hasSubTypes, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFood, isHandheld, isNetworkSynced, isUnbreakable, method_3356, method_3369, method_3378, method_3380, method_3397, method_6324, onCraft, onEntityHit, onFinishUse, onHit, onStartUse, onUseStopped, setHandheld, setItemGroup, setMaxCount, setMaxDamage, setRecipeRemainder, setStatusEffectString, setUnbreakable, setup, shouldRotate, shouldSyncNbtToClient
-
Field Details
-
block
- Mappings:
Namespace Name Mixin selector official aLzs;a:Laht;intermediary field_6952Lnet/minecraft/class_1096;field_6952:Lnet/minecraft/class_197;named blockLnet/minecraft/item/BlockItem;block:Lnet/minecraft/block/Block;
-
field_6210
- Mappings:
Namespace Name Mixin selector official bLzs;b:Lpr;intermediary field_6210Lnet/minecraft/class_1096;field_6210:Lnet/minecraft/class_1557;named field_6210Lnet/minecraft/item/BlockItem;field_6210:Lnet/minecraft/client/Texture;
-
-
Constructor Details
-
BlockItem
- Mappings:
Namespace Name Mixin selector official <init>Lzs;<init>(Laht;)Vintermediary <init>Lnet/minecraft/class_1096;<init>(Lnet/minecraft/class_197;)Vnamed <init>Lnet/minecraft/item/BlockItem;<init>(Lnet/minecraft/block/Block;)V
-
-
Method Details
-
setTranslationKey
Description copied from class:ItemSets the current item's translation key.- Overrides:
setTranslationKeyin classItem- Parameters:
string- Translation key- Returns:
- The current Item
- Mappings:
Namespace Name Mixin selector official bLzs;b(Ljava/lang/String;)Lzs;intermediary method_6340Lnet/minecraft/class_1096;method_6340(Ljava/lang/String;)Lnet/minecraft/class_1096;named setTranslationKeyLnet/minecraft/item/BlockItem;setTranslationKey(Ljava/lang/String;)Lnet/minecraft/item/BlockItem;
-
method_5463
- Overrides:
method_5463in classItem- Mappings:
Namespace Name Mixin selector official dLabm;d()Iintermediary method_5463Lnet/minecraft/class_1069;method_5463()Inamed method_5463Lnet/minecraft/item/Item;method_5463()I
-
method_3343
- Overrides:
method_3343in classItem- Mappings:
Namespace Name Mixin selector official b_Labm;b_(I)Lpr;intermediary method_3343Lnet/minecraft/class_1069;method_3343(I)Lnet/minecraft/class_1557;named method_3343Lnet/minecraft/item/Item;method_3343(I)Lnet/minecraft/client/Texture;
-
method_3355
public boolean method_3355(ItemStack itemStack, PlayerEntity playerEntity, World world, int int2, int int3, int int4, int int5, float float2, float float3, float float4) - Overrides:
method_3355in classItem- Mappings:
Namespace Name Mixin selector official aLabm;a(Labo;Lxk;Lafm;IIIIFFF)Zintermediary method_3355Lnet/minecraft/class_1069;method_3355(Lnet/minecraft/class_1071;Lnet/minecraft/class_988;Lnet/minecraft/class_1150;IIIIFFF)Znamed method_3355Lnet/minecraft/item/Item;method_3355(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;IIIIFFF)Z
-
method_3463
@Environment(CLIENT) public boolean method_3463(World world, int int2, int int3, int int4, int int5, PlayerEntity playerEntity, ItemStack itemStack) - Mappings:
Namespace Name Mixin selector official aLzs;a(Lafm;IIIILxk;Labo;)Zintermediary method_3463Lnet/minecraft/class_1096;method_3463(Lnet/minecraft/class_1150;IIIILnet/minecraft/class_988;Lnet/minecraft/class_1071;)Znamed method_3463Lnet/minecraft/item/BlockItem;method_3463(Lnet/minecraft/world/World;IIIILnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)Z
-
getTranslationKey
- Overrides:
getTranslationKeyin classItem- Mappings:
Namespace Name Mixin selector official aLabm;a(Labo;)Ljava/lang/String;intermediary method_3371Lnet/minecraft/class_1069;method_3371(Lnet/minecraft/class_1071;)Ljava/lang/String;named getTranslationKeyLnet/minecraft/item/Item;getTranslationKey(Lnet/minecraft/item/ItemStack;)Ljava/lang/String;
-
getTranslationKey
Returns the translation key of the current Item- Overrides:
getTranslationKeyin classItem- Returns:
- Translation key
- Mappings:
Namespace Name Mixin selector official aLabm;a()Ljava/lang/String;intermediary method_3342Lnet/minecraft/class_1069;method_3342()Ljava/lang/String;named getTranslationKeyLnet/minecraft/item/Item;getTranslationKey()Ljava/lang/String;
-
getItemGroup
Returns the itemgroup that the item is in- Overrides:
getItemGroupin classItem- Mappings:
Namespace Name Mixin selector official n_Labm;n_()Laae;intermediary method_3398Lnet/minecraft/class_1069;method_3398()Lnet/minecraft/class_1041;named getItemGroupLnet/minecraft/item/Item;getItemGroup()Lnet/minecraft/item/itemgroup/ItemGroup;
-
appendItemStacks
Registers an item's sub items- Overrides:
appendItemStacksin classItem- Parameters:
item- The Item instancegroup- The ItemGrouplist- The list of sub items- Mappings:
Namespace Name Mixin selector official aLabm;a(Labm;Laae;Ljava/util/List;)Vintermediary method_3345Lnet/minecraft/class_1069;method_3345(Lnet/minecraft/class_1069;Lnet/minecraft/class_1041;Ljava/util/List;)Vnamed appendItemStacksLnet/minecraft/item/Item;appendItemStacks(Lnet/minecraft/item/Item;Lnet/minecraft/item/itemgroup/ItemGroup;Ljava/util/List;)V
-
method_5462
- Overrides:
method_5462in classItem- Mappings:
Namespace Name Mixin selector official aLabm;a(Lps;)Vintermediary method_5462Lnet/minecraft/class_1069;method_5462(Lnet/minecraft/class_1558;)Vnamed method_5462Lnet/minecraft/item/Item;method_5462(Lnet/minecraft/client/TextureRegistry;)V
-