net.minecraft.world.level.block.entity

public class ShelfBlockEntity

extends BlockEntity implements ItemOwner, ListBackedContainer

All mapped superinterfaces:

DebugValueSource, ItemOwner, ListBackedContainer, Container, Clearable

ehv
net.minecraft.world.level.block.entity.ShelfBlockEntity
net.minecraft.class_11597
net.minecraft.block.entity.ShelfBlockEntity
net.minecraft.src.C_411434_
net.minecraft.world.level.block.entity.ShelfBlockEntity

Field summary

Modifier and TypeField
public static final int
b
MAX_ITEMS
field_61441
SLOT_COUNT
f_412580_
private static final org.slf4j.Logger
c
LOGGER
field_61442
LOGGER
f_411947_
private static final String
d
ALIGN_ITEMS_TO_BOTTOM_TAG
field_62078
ALIGN_ITEMS_TO_BOTTOM_KEY
f_411860_
private final NonNullList<ItemStack>
e
items
field_61443
heldStacks
f_413436_
private boolean
f
alignItemsToBottom
field_62079
alignItemsToBottom
f_413317_

Constructor summary

ModifierConstructor
public (BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
protected void
a(fip arg0)
loadAdditional(ValueInput arg0)
method_11014(class_11368 arg0)
readData(ReadView arg0)
m_318667_(C_398549_ arg0)
protected void
a(fir arg0)
saveAdditional(ValueOutput arg0)
method_11007(class_11372 arg0)
writeData(WriteView arg0)
m_183515_(C_398537_ arg0)
public ClientboundBlockEntityDataPacket
k()
getUpdatePacket()
method_72667()
toUpdatePacket()
m_58483_()
public CompoundTag
a(jm$a arg0)
getUpdateTag(HolderLookup$Provider arg0)
method_16887(class_7225$class_7874 arg0)
toInitialChunkDataNbt(RegistryWrapper$WrapperLookup arg0)
m_5995_(C_213466_$C_254607_ arg0)
public NonNullList<ItemStack>
h()
getItems()
method_72652()
getHeldStacks()
m_416324_()
public boolean
a(czl arg0)
stillValid(Player arg0)
method_5443(class_1657 arg0)
canPlayerUse(PlayerEntity arg0)
m_6542_(C_1141_ arg0)
public ItemStack
d(int arg0, dhp arg1)
swapItemNoUpdate(int arg0, ItemStack arg1)
method_72666(int arg0, class_1799 arg1)
swapStackNoMarkDirty(int slot, ItemStack stack)
m_419078_(int p_428003_, C_1391_ arg1)
public void
a(jk$c<eoq> arg0)
setChanged(Holder$Reference<GameEvent> arg0)
method_72665(class_6880$class_6883<class_5712> arg0)
markDirty(RegistryEntry$Reference<GameEvent> gameEvent)
m_416844_(C_203228_$C_203231_<C_141307_> arg0)
public void
e()
setChanged()
method_5431()
markDirty()
m_6596_()
protected void
a(kk arg0)
applyImplicitComponents(DataComponentGetter arg0)
method_57568(class_9473 arg0)
readComponents(ComponentsAccess arg0)
m_318741_(C_379187_ arg0)
protected void
a(km$a arg0)
collectImplicitComponents(DataComponentMap$Builder arg0)
method_57567(class_9323$class_9324 arg0)
addComponents(ComponentMap$Builder arg0)
m_318837_(C_313470_$C_313535_ arg0)
public void
b(fir arg0)
removeComponentsFromTag(ValueOutput arg0)
method_57569(class_11372 arg0)
removeFromCopiedStackData(WriteView arg0)
m_318942_(C_398537_ arg0)
public Level
an()
level()
method_73183()
getEntityWorld()
m_9236_()
public Vec3
dD()
position()
method_73189()
getEntityPos()
m_20182_()
public float
dY()
getVisualRotationYInDegrees()
method_73188()
getBodyYaw()
m_213816_()
public boolean
l()
getAlignItemsToBottom()
method_73326()
shouldAlignItemsToBottom()
m_416720_()