net.minecraft.world.level.block.entity

public class BarrelBlockEntity

extends RandomizableContainerBlockEntity

All mapped superinterfaces:

Container, Clearable, MenuProvider, MenuConstructor, Nameable

btq
net.minecraft.world.level.block.entity.BarrelBlockEntity
net.minecraft.class_3719
net.minecraft.block.entity.BarrelBlockEntity
net.minecraft.tileentity.BarrelTileEntity
net.minecraft.server.v1_14_R1.TileEntityBarrel

Field summary

Modifier and TypeField
private NonNullList<ItemStack>
a
items
field_16410
inventory
field_213966_a
items
private int
b
openCount
field_17583
viewerCount
field_213967_b

Constructor summary

ModifierConstructor
private (BlockEntityType<?> arg0)
public ()

Method summary

Modifier and TypeMethod
public CompoundTag
b(id arg0)
save(CompoundTag arg0)
method_11007(class_2487 arg0)
toTag(CompoundTag arg0)
func_189515_b(CompoundNBT arg0)
save(NBTTagCompound arg0)
public void
a(id arg0)
load(CompoundTag arg0)
method_11014(class_2487 arg0)
fromTag(CompoundTag arg0)
func_145839_a(CompoundNBT arg0)
load(NBTTagCompound arg0)
public int
M_()
getContainerSize()
method_5439()
getInvSize()
func_70302_i_()
getSize()
public boolean
c()
isEmpty()
method_5442()
isInvEmpty()
func_191420_l()
isNotEmpty()
public ItemStack
a(int arg0)
getItem(int arg0)
method_5438(int arg0)
getInvStack(int arg0)
func_70301_a(int arg0)
getItem(int arg0)
public ItemStack
a(int arg0, int arg1)
removeItem(int arg0, int arg1)
method_5434(int arg0, int arg1)
takeInvStack(int arg0, int arg1)
func_70298_a(int arg0, int arg1)
splitStack(int arg0, int arg1)
public ItemStack
b(int arg0)
removeItemNoUpdate(int arg0)
method_5441(int arg0)
removeInvStack(int arg0)
func_70304_b(int arg0)
splitWithoutUpdate(int arg0)
public void
a(int arg0, bcj arg1)
setItem(int arg0, ItemStack arg1)
method_5447(int arg0, class_1799 arg1)
setInvStack(int arg0, ItemStack arg1)
func_70299_a(int arg0, ItemStack arg1)
setItem(int arg0, ItemStack arg1)
public void
L_()
clearContent()
method_5448()
clear()
func_174888_l()
clear()
protected NonNullList<ItemStack>
f()
getItems()
method_11282()
getInvStackList()
func_190576_q()
protected void
a(fk<bcj> arg0)
setItems(NonNullList<ItemStack> arg0)
method_11281(class_2371<class_1799> arg0)
setInvStackList(DefaultedList<ItemStack> arg0)
func_199721_a(NonNullList<ItemStack> arg0)
protected Component
g()
getDefaultName()
method_17823()
getContainerName()
func_213907_g()
getContainerName()
protected AbstractContainerMenu
a(int arg0, awf arg1)
createMenu(int arg0, Inventory arg1)
method_5465(int arg0, class_1661 arg1)
createContainer(int arg0, PlayerInventory arg1)
func_213906_a(int arg0, PlayerInventory arg1)
createContainer(int arg0, PlayerInventory arg1)
public void
a_(awg arg0)
startOpen(Player arg0)
method_5435(class_1657 arg0)
onInvOpen(PlayerEntity arg0)
func_174889_b(PlayerEntity arg0)
startOpen(EntityHuman arg0)
private void
s()
scheduleRecheck()
method_20363()
scheduleUpdate()
func_213964_r()
public void
h()
recheckOpen()
method_20362()
tick()
func_213962_h()
public void
b_(awg arg0)
stopOpen(Player arg0)
method_5432(class_1657 arg0)
onInvClose(PlayerEntity arg0)
func_174886_c(PlayerEntity arg0)
closeContainer(EntityHuman arg0)
private void
a(bvt arg0, boolean arg1)
updateBlockState(BlockState arg0, boolean arg1)
method_18318(class_2680 arg0, boolean arg1)
setOpen(BlockState state, boolean open)
func_213963_a(BlockState arg0, boolean arg1)
private void
a(bvt arg0, yo arg1)
playSound(BlockState arg0, SoundEvent arg1)
method_17764(class_2680 arg0, class_3414 arg1)
playSound(BlockState arg0, SoundEvent arg1)
func_213965_a(BlockState arg0, SoundEvent arg1)