net.minecraft.world.item

public class BlockItem

extends Item

All mapped superinterfaces:

FeatureElement, ItemLike

cuw
net.minecraft.world.item.BlockItem
net.minecraft.class_1747
net.minecraft.item.BlockItem
net.minecraft.world.item.ItemBlock

Field summary

Modifier and TypeField
private final Block
a
block
field_7901
block

Constructor summary

ModifierConstructor
public (Block block, Item$Properties settings)

Method summary

Modifier and TypeMethod
public InteractionResult
a(daj arg0)
useOn(UseOnContext arg0)
method_7884(class_1838 arg0)
useOnBlock(ItemUsageContext arg0)
public InteractionResult
a(dah arg0)
place(BlockPlaceContext arg0)
method_7712(class_1750 arg0)
place(ItemPlacementContext context)
protected SoundEvent
a(dwy arg0)
getPlaceSound(BlockState arg0)
method_19260(class_2680 arg0)
getPlaceSound(BlockState state)
public BlockPlaceContext
b(dah arg0)
updatePlacementContext(BlockPlaceContext arg0)
method_16356(class_1750 arg0)
getPlacementContext(ItemPlacementContext context)
private static void
a(dgj arg0, ji arg1, cwq arg2)
updateBlockEntityComponents(Level arg0, BlockPos arg1, ItemStack arg2)
method_57339(class_1937 arg0, class_2338 arg1, class_1799 arg2)
copyComponentsToBlockEntity(World world, BlockPos pos, ItemStack stack)
protected boolean
a(ji arg0, dgj arg1, coy arg2, cwq arg3, dwy 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)
protected BlockState
c(dah arg0)
getPlacementState(BlockPlaceContext arg0)
method_7707(class_1750 arg0)
getPlacementState(ItemPlacementContext context)
private BlockState
a(ji arg0, dgj arg1, cwq arg2, dwy arg3)
updateBlockStateFromTag(BlockPos arg0, Level arg1, ItemStack arg2, BlockState arg3)
method_18084(class_2338 arg0, class_1937 arg1, class_1799 arg2, class_2680 arg3)
placeFromNbt(BlockPos pos, World world, ItemStack stack, BlockState state)
protected boolean
b(dah arg0, dwy arg1)
canPlace(BlockPlaceContext arg0, BlockState arg1)
method_7709(class_1750 arg0, class_2680 arg1)
canPlace(ItemPlacementContext context, BlockState state)
protected boolean
c()
mustSurvive()
method_20360()
checkStatePlacement()
protected boolean
a(dah arg0, dwy arg1)
placeBlock(BlockPlaceContext arg0, BlockState arg1)
method_7708(class_1750 arg0, class_2680 arg1)
place(ItemPlacementContext context, BlockState state)
public static boolean
a(dgj arg0, coy arg1, ji arg2, cwq arg3)
updateCustomBlockEntityTag(Level arg0, Player arg1, BlockPos arg2, ItemStack arg3)
method_7714(class_1937 arg0, class_1657 arg1, class_2338 arg2, class_1799 arg3)
writeNbtToBlockEntity(World world, PlayerEntity player, BlockPos pos, ItemStack stack)
public void
a(cwq arg0, cwm$b arg1, List<wp> arg2, cyi arg3)
appendHoverText(ItemStack arg0, Item$TooltipContext arg1, List<Component> arg2, TooltipFlag arg3)
method_7851(class_1799 arg0, class_1792$class_9635 arg1, List<class_2561> arg2, class_1836 arg3)
appendTooltip(ItemStack arg0, Item$TooltipContext arg1, List<Text> arg2, TooltipType arg3)
public boolean
a(cwq arg0, coy arg1)
shouldPrintOpWarning(ItemStack arg0, Player arg1)
method_65353(class_1799 arg0, class_1657 arg1)
shouldShowOperatorBlockWarnings(ItemStack arg0, PlayerEntity arg1)
public Block
d()
getBlock()
method_7711()
getBlock()
public void
a(Map<djn, cwm> arg0, cwm 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)
public boolean
e()
canFitInsideContainerItems()
method_31568()
canBeNested()
public void
a(cld arg0)
onDestroyed(ItemEntity arg0)
method_33261(class_1542 arg0)
onItemEntityDestroyed(ItemEntity arg0)
public static void
a(cwq arg0, duc<?> arg1, tq arg2)
setBlockEntityData(ItemStack arg0, BlockEntityType<?> arg1, CompoundTag arg2)
method_57338(class_1799 arg0, class_2591<?> arg1, class_2487 arg2)
setBlockEntityData(ItemStack stack, BlockEntityType<?> type, NbtCompound nbt)
public FeatureFlagSet
i()
requiredFeatures()
method_45322()
getRequiredFeatures()