net.minecraft.world.item

public class BlockItem

extends Item

All mapped superinterfaces:

ItemLike

bot
net.minecraft.world.item.BlockItem
net.minecraft.class_1747
net.minecraft.item.BlockItem
net.minecraft.src.C_1325_
net.minecraft.world.item.ItemBlock

Field summary

Modifier and TypeField
public static final String
a
BLOCK_ENTITY_TAG
field_30849
BLOCK_ENTITY_TAG_KEY
f_150696_
public static final String
b
BLOCK_STATE_TAG
field_30850
BLOCK_STATE_TAG_KEY
f_150697_
private final Block
c
block
field_7901
block
f_40563_

Constructor summary

ModifierConstructor
public (Block block, Item$Properties settings)

Method summary

Modifier and TypeMethod
public InteractionResult
a(bsr arg0)
useOn(UseOnContext arg0)
method_7884(class_1838 arg0)
useOnBlock(ItemUsageContext arg0)
m_6225_(C_1450_ arg0)
public InteractionResult
a(bsp arg0)
place(BlockPlaceContext arg0)
method_7712(class_1750 arg0)
place(ItemPlacementContext context)
m_40576_(C_1445_ arg0)
protected SoundEvent
a(cks arg0)
getPlaceSound(BlockState arg0)
method_19260(class_2680 arg0)
getPlaceSound(BlockState state)
m_40587_(C_2064_ arg0)
public BlockPlaceContext
b(bsp arg0)
updatePlacementContext(BlockPlaceContext arg0)
method_16356(class_1750 arg0)
getPlacementContext(ItemPlacementContext context)
m_7732_(C_1445_ arg0)
protected boolean
a(gg arg0, bwp arg1, bkd arg2, bqp arg3, cks arg4)
updateCustomBlockEntityTag(BlockPos arg0, Level arg1, Player arg2, ItemStack arg3, BlockState arg4)
method_7710(class_2338 arg0, class_1937 arg1, class_1657 arg2, class_1799 arg3, class_2680 arg4)
postPlacement(BlockPos pos, World world, PlayerEntity player, ItemStack stack, BlockState state)
m_7274_(C_4675_ p_40598_, C_1596_ p_40599_, C_1141_ p_40600_, C_1391_ p_40601_, C_2064_ arg4)
protected BlockState
c(bsp arg0)
getPlacementState(BlockPlaceContext arg0)
method_7707(class_1750 arg0)
getPlacementState(ItemPlacementContext context)
m_5965_(C_1445_ arg0)
private BlockState
a(gg arg0, bwp arg1, bqp arg2, cks arg3)
updateBlockStateFromTag(BlockPos arg0, Level arg1, ItemStack arg2, BlockState arg3)
method_18084(class_2338 arg0, class_1937 arg1, class_1799 arg2, class_2680 arg3)
placeFromTag(BlockPos pos, World world, ItemStack stack, BlockState state)
m_40602_(C_4675_ p_40604_, C_1596_ p_40605_, C_1391_ p_40606_, C_2064_ arg3)
private static <T extends Comparable<T>> BlockState
a(cks arg0, clv<T> arg1, String arg2)
updateState(BlockState arg0, Property<T> arg1, String arg2)
method_18083(class_2680 arg0, class_2769<T> arg1, String arg2)
with(BlockState state, Property<T> property, String name)
m_40593_(C_2064_ p_40594_, C_2097_<T> p_40595_, String p_40596_)
protected boolean
b(bsp arg0, cks arg1)
canPlace(BlockPlaceContext arg0, BlockState arg1)
method_7709(class_1750 arg0, class_2680 arg1)
canPlace(ItemPlacementContext context, BlockState state)
m_40610_(C_1445_ p_40612_, C_2064_ arg1)
protected boolean
d()
mustSurvive()
method_20360()
checkStatePlacement()
m_6652_()
isCheckCollisions()
protected boolean
a(bsp arg0, cks arg1)
placeBlock(BlockPlaceContext arg0, BlockState arg1)
method_7708(class_1750 arg0, class_2680 arg1)
place(ItemPlacementContext context, BlockState state)
m_7429_(C_1445_ p_40579_, C_2064_ arg1)
public static boolean
a(bwp arg0, bkd arg1, gg arg2, bqp arg3)
updateCustomBlockEntityTag(Level arg0, Player arg1, BlockPos arg2, ItemStack arg3)
method_7714(class_1937 arg0, class_1657 arg1, class_2338 arg2, class_1799 arg3)
writeTagToBlockEntity(World world, PlayerEntity player, BlockPos pos, ItemStack stack)
m_40582_(C_1596_ p_40583_, C_1141_ p_40584_, C_4675_ p_40585_, C_1391_ p_40586_)
public String
a()
getDescriptionId()
method_7876()
getTranslationKey()
m_5524_()
getName()
public void
a(bpf arg0, gs<bqp> arg1)
fillItemCategory(CreativeModeTab arg0, NonNullList<ItemStack> arg1)
method_7850(class_1761 arg0, class_2371<class_1799> arg1)
appendStacks(ItemGroup arg0, DefaultedList<ItemStack> arg1)
m_6787_(C_1336_ p_40570_, C_4702_<C_1391_> arg1)
public void
a(bqp arg0, bwp arg1, List<os> arg2, bsc arg3)
appendHoverText(ItemStack arg0, Level arg1, List<Component> arg2, TooltipFlag arg3)
method_7851(class_1799 arg0, class_1937 arg1, List<class_2561> arg2, class_1836 arg3)
appendTooltip(ItemStack arg0, World arg1, List<Text> arg2, TooltipContext arg3)
m_7373_(C_1391_ p_40573_, C_1596_ p_40574_, List<C_4996_> p_40575_, C_1431_ arg3)
public Block
e()
getBlock()
method_7711()
getBlock()
m_40614_()
getBlock()
public void
a(Map<bzo, bql> arg0, bql arg1)
registerBlocks(Map<Block, Item> arg0, Item arg1)
method_7713(Map<class_2248, class_1792> arg0, class_1792 arg1)
appendBlocks(Map<Block, Item> map, Item item)
m_6192_(Map<C_1706_, C_1381_> p_40608_, C_1381_ arg1)
public boolean
P_()
canFitInsideContainerItems()
method_31568()
canBeNested()
m_142095_()
public void
a(bhc arg0)
onDestroyed(ItemEntity arg0)
method_33261(class_1542 arg0)
onItemEntityDestroyed(ItemEntity arg0)
m_142023_(C_976_ arg0)