Package net.minecraft.item
Class BlockItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.BlockItem
- Direct Known Subclasses:
BannerItem,GrassBlockItem,LeavesItem,SnowLayerItem,StickyPistonBlockItem,StoneSlabItem,VariantBlockItem,WoolItem
- Mappings:
Namespace Name official ajuintermediary net/minecraft/class_1096named net/minecraft/item/BlockItem
-
Field Summary
FieldsFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, damageable, handheld, maxCount, RANDOM, REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendItemStacks(Item item, ItemGroup group, List list) Registers an item's sub itemsgetBlock()Returns the itemgroup that the item is inReturns the translation key of the current ItemgetTranslationKey(ItemStack stack) booleanmethod_11269(World world, BlockPos blockPos, Direction direction, PlayerEntity playerEntity, ItemStack itemStack) static booleanmethod_11270(World world, BlockPos blockPos, ItemStack itemStack) setTranslationKey(String string) Sets the current item's translation key.booleanMethods 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, onBlockBroken, onCraft, onEntityHit, onFinishUse, onHit, onStartUse, onUseStopped, postProcessNbt, registerBlockItem, setHandheld, setItemGroup, setMaxCount, setMaxDamage, setRecipeRemainder, setStatusEffectString, setUnbreakable, setup, shouldRotate, shouldSyncNbtToClient
-
Field Details
-
block
- Mappings:
Namespace Name Mixin selector official aLaju;a:Latr;intermediary field_6952Lnet/minecraft/class_1096;field_6952:Lnet/minecraft/class_197;named blockLnet/minecraft/item/BlockItem;block:Lnet/minecraft/block/Block;
-
-
Constructor Details
-
BlockItem
- Mappings:
Namespace Name Mixin selector official <init>Laju;<init>(Latr;)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 bLaju;b(Ljava/lang/String;)Laju;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;
-
use
public boolean use(ItemStack itemStack, PlayerEntity player, World world, BlockPos pos, Direction direction, float facingX, float facingY, float facingZ) - Overrides:
usein classItem- Mappings:
Namespace Name Mixin selector official aLalq;a(Lamj;Lahd;Laqu;Ldt;Lej;FFF)Zintermediary method_3355Lnet/minecraft/class_1069;method_3355(Lnet/minecraft/class_1071;Lnet/minecraft/class_988;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;FFF)Znamed useLnet/minecraft/item/Item;use(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;FFF)Z
-
method_11270
- Mappings:
Namespace Name Mixin selector official aLaju;a(Laqu;Ldt;Lamj;)Zintermediary method_11270Lnet/minecraft/class_1096;method_11270(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1071;)Znamed method_11270Lnet/minecraft/item/BlockItem;method_11270(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/item/ItemStack;)Z
-
method_11269
@Environment(CLIENT) public boolean method_11269(World world, BlockPos blockPos, Direction direction, PlayerEntity playerEntity, ItemStack itemStack) - Mappings:
Namespace Name Mixin selector official aLaju;a(Laqu;Ldt;Lej;Lahd;Lamj;)Zintermediary method_11269Lnet/minecraft/class_1096;method_11269(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;Lnet/minecraft/class_988;Lnet/minecraft/class_1071;)Znamed method_11269Lnet/minecraft/item/BlockItem;method_11269(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)Z
-
getTranslationKey
- Overrides:
getTranslationKeyin classItem- Mappings:
Namespace Name Mixin selector official e_Lalq;e_(Lamj;)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 aLalq;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 cLalq;c()Lakf;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 aLalq;a(Lalq;Lakf;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
-
getBlock
- Mappings:
Namespace Name Mixin selector official dLaju;d()Latr;intermediary method_11271Lnet/minecraft/class_1096;method_11271()Lnet/minecraft/class_197;named getBlockLnet/minecraft/item/BlockItem;getBlock()Lnet/minecraft/block/Block;
-