Package net.minecraft.item
Class BlockItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.BlockItem
- All Implemented Interfaces:
Itemable
- Direct Known Subclasses:
BedItem,class_3548,class_3553,class_3559,class_3560,LilyPadItem
- Mappings:
Namespace Name official arjintermediary net/minecraft/class_1096named net/minecraft/item/BlockItem
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.Settings -
Field Summary
FieldsFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, ATTACK_SPEED_MODIFIER, BLOCK_ITEMS, itemGroup, RANDOM -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendToItemGroup(ItemGroup group, DefaultedList<ItemStack> stacks) voidappendTooltips(ItemStack stack, World world, List<Text> tooltip, TooltipContext tooltipContext) getBlock()Returns the translation key of the current Itemmethod_16012(ItemPlacementContext itemPlacementContext) protected booleanmethod_16013(ItemPlacementContext itemPlacementContext, BlockState blockState) protected booleanmethod_16014(BlockPos blockPos, World world, PlayerEntity playerEntity, ItemStack itemStack, BlockState blockState) voidmethod_16015(Map<Block, Item> map, Item item) protected BlockStatemethod_16016(ItemPlacementContext itemPlacementContext) protected booleanmethod_16017(ItemPlacementContext itemPlacementContext, BlockState blockState) static booleansetBlockEntityNbt(World world, PlayerEntity player, BlockPos pos, ItemStack itemStack) useOnBlock(ItemUsageContext itemUsageContext) Methods inherited from class net.minecraft.item.Item
addProperty, beforeBlockBreak, byRawId, canAddTo, canRepair, computeTranslationKey, fromBlock, getBlockBreakingSpeed, getDefaultStack, getEnchantability, getItem, getItemGroup, getMaxCount, getMaxDamage, getMaxUseTime, getProperty, getRarity, getRawId, getRecipeRemainder, getTranslationKey, getUseAction, hasEnchantmentGlint, hasProperties, inventoryTick, isDamageable, isEnchantable, isFood, isNetworkSynced, method_13649, method_16075, method_16080, method_3346, method_3353, method_3356, method_3359, method_3367, method_3383, method_6326, onCraft, onEntityHit, onHit, postProcessNbt, registerBlockItem, setup, shouldSyncNbtToClient
-
Field Details
-
block
Deprecated.- Mappings:
Namespace Name Mixin selector official aLarj;a:Lbcs;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
-
-
Method Details
-
useOnBlock
- Overrides:
useOnBlockin classItem- Mappings:
Namespace Name Mixin selector official aLata;a(Laup;)Ladm;intermediary method_16071Lnet/minecraft/class_1069;method_16071(Lnet/minecraft/class_3565;)Lnet/minecraft/class_2962;named useOnBlockLnet/minecraft/item/Item;useOnBlock(Lnet/minecraft/item/ItemUsageContext;)Lnet/minecraft/util/ActionResult;
-
method_16012
- Mappings:
Namespace Name Mixin selector official aLarj;a(Lark;)Ladm;intermediary method_16012Lnet/minecraft/class_1096;method_16012(Lnet/minecraft/class_3544;)Lnet/minecraft/class_2962;named method_16012Lnet/minecraft/item/BlockItem;method_16012(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/util/ActionResult;
-
method_16014
protected boolean method_16014(BlockPos blockPos, World world, @Nullable PlayerEntity playerEntity, ItemStack itemStack, BlockState blockState) - Mappings:
Namespace Name Mixin selector official aLarj;a(Lel;Laxy;Laog;Late;Lblc;)Zintermediary method_16014Lnet/minecraft/class_1096;method_16014(Lnet/minecraft/class_2552;Lnet/minecraft/class_1150;Lnet/minecraft/class_988;Lnet/minecraft/class_1071;Lnet/minecraft/class_2232;)Znamed method_16014Lnet/minecraft/item/BlockItem;method_16014(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/block/BlockState;)Z
-
method_16016
- Mappings:
Namespace Name Mixin selector official bLarj;b(Lark;)Lblc;intermediary method_16016Lnet/minecraft/class_1096;method_16016(Lnet/minecraft/class_3544;)Lnet/minecraft/class_2232;named method_16016Lnet/minecraft/item/BlockItem;method_16016(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
-
method_16017
- Mappings:
Namespace Name Mixin selector official bLarj;b(Lark;Lblc;)Zintermediary method_16017Lnet/minecraft/class_1096;method_16017(Lnet/minecraft/class_3544;Lnet/minecraft/class_2232;)Znamed method_16017Lnet/minecraft/item/BlockItem;method_16017(Lnet/minecraft/item/ItemPlacementContext;Lnet/minecraft/block/BlockState;)Z
-
method_16013
- Mappings:
Namespace Name Mixin selector official aLarj;a(Lark;Lblc;)Zintermediary method_16013Lnet/minecraft/class_1096;method_16013(Lnet/minecraft/class_3544;Lnet/minecraft/class_2232;)Znamed method_16013Lnet/minecraft/item/BlockItem;method_16013(Lnet/minecraft/item/ItemPlacementContext;Lnet/minecraft/block/BlockState;)Z
-
setBlockEntityNbt
public static boolean setBlockEntityNbt(World world, @Nullable PlayerEntity player, BlockPos pos, ItemStack itemStack) - Mappings:
Namespace Name Mixin selector official aLarj;a(Laxy;Laog;Lel;Late;)Zintermediary method_11270Lnet/minecraft/class_1096;method_11270(Lnet/minecraft/class_1150;Lnet/minecraft/class_988;Lnet/minecraft/class_2552;Lnet/minecraft/class_1071;)Znamed setBlockEntityNbtLnet/minecraft/item/BlockItem;setBlockEntityNbt(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/item/ItemStack;)Z
-
getTranslationKey
Returns the translation key of the current Item- Overrides:
getTranslationKeyin classItem- Returns:
- Translation key
- Mappings:
Namespace Name Mixin selector official aLata;a()Ljava/lang/String;intermediary method_3342Lnet/minecraft/class_1069;method_3342()Ljava/lang/String;named getTranslationKeyLnet/minecraft/item/Item;getTranslationKey()Ljava/lang/String;
-
appendToItemGroup
- Overrides:
appendToItemGroupin classItem- Mappings:
Namespace Name Mixin selector official aLata;a(Lary;Lez;)Vintermediary method_14233Lnet/minecraft/class_1069;method_14233(Lnet/minecraft/class_1041;Lnet/minecraft/class_3114;)Vnamed appendToItemGroupLnet/minecraft/item/Item;appendToItemGroup(Lnet/minecraft/item/itemgroup/ItemGroup;Lnet/minecraft/util/collection/DefaultedList;)V
-
appendTooltips
@Environment(CLIENT) public void appendTooltips(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext tooltipContext) - Overrides:
appendTooltipsin classItem- Mappings:
Namespace Name Mixin selector official aLata;a(Late;Laxy;Ljava/util/List;Laum;)Vintermediary method_14234Lnet/minecraft/class_1069;method_14234(Lnet/minecraft/class_1071;Lnet/minecraft/class_1150;Ljava/util/List;Lnet/minecraft/class_3191;)Vnamed appendTooltipsLnet/minecraft/item/Item;appendTooltips(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Ljava/util/List;Lnet/minecraft/client/TooltipContext;)V
-
getBlock
- Mappings:
Namespace Name Mixin selector official dLarj;d()Lbcs;intermediary method_11271Lnet/minecraft/class_1096;method_11271()Lnet/minecraft/class_197;named getBlockLnet/minecraft/item/BlockItem;getBlock()Lnet/minecraft/block/Block;
-
method_16015
- Mappings:
Namespace Name Mixin selector official aLarj;a(Ljava/util/Map;Lata;)Vintermediary method_16015Lnet/minecraft/class_1096;method_16015(Ljava/util/Map;Lnet/minecraft/class_1069;)Vnamed method_16015Lnet/minecraft/item/BlockItem;method_16015(Ljava/util/Map;Lnet/minecraft/item/Item;)V
-