net.minecraft.world.level.block.entity

public abstract class ContainerOpenersCounter

cmj
net.minecraft.world.level.block.entity.ContainerOpenersCounter
net.minecraft.class_5561
net.minecraft.block.entity.ViewerCountManager
net.minecraft.src.C_141248_
net.minecraft.world.level.block.entity.ContainerOpenersCounter

Field summary

Modifier and TypeField
private static final int
a
CHECK_TICK_DELAY
field_31339
SCHEDULE_TICK_DELAY
f_155447_
private int
b
openCount
field_27215
viewerCount
f_155448_

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
protected abstract void
a(cad arg0, gh arg1, coc arg2)
onOpen(Level arg0, BlockPos arg1, BlockState arg2)
method_31681(class_1937 arg0, class_2338 arg1, class_2680 arg2)
onContainerOpen(World world, BlockPos pos, BlockState state)
m_142292_(C_1596_ p_155461_, C_4675_ p_155462_, C_2064_ arg2)
protected abstract void
b(cad arg0, gh arg1, coc arg2)
onClose(Level arg0, BlockPos arg1, BlockState arg2)
method_31683(class_1937 arg0, class_2338 arg1, class_2680 arg2)
onContainerClose(World world, BlockPos pos, BlockState state)
m_142289_(C_1596_ p_155474_, C_4675_ p_155475_, C_2064_ arg2)
protected abstract void
a(cad arg0, gh arg1, coc arg2, int arg3, int arg4)
openerCountChanged(Level arg0, BlockPos arg1, BlockState arg2, int arg3, int arg4)
method_31682(class_1937 arg0, class_2338 arg1, class_2680 arg2, int arg3, int arg4)
onViewerCountUpdate(World world, BlockPos pos, BlockState state, int oldViewerCount, int newViewerCount)
m_142148_(C_1596_ p_155464_, C_4675_ p_155465_, C_2064_ p_155466_, int p_155467_, int arg4)
protected abstract boolean
a(bnr arg0)
isOwnContainer(Player arg0)
method_31679(class_1657 arg0)
isPlayerViewing(PlayerEntity player)
m_142718_(C_1141_ arg0)
public void
a(bnr arg0, cad arg1, gh arg2, coc arg3)
incrementOpeners(Player arg0, Level arg1, BlockPos arg2, BlockState arg3)
method_31684(class_1657 arg0, class_1937 arg1, class_2338 arg2, class_2680 arg3)
openContainer(PlayerEntity player, World world, BlockPos pos, BlockState state)
m_155452_(C_1141_ p_155454_, C_1596_ p_155455_, C_4675_ p_155456_, C_2064_ arg3)
public void
b(bnr arg0, cad arg1, gh arg2, coc arg3)
decrementOpeners(Player arg0, Level arg1, BlockPos arg2, BlockState arg3)
method_31685(class_1657 arg0, class_1937 arg1, class_2338 arg2, class_2680 arg3)
closeContainer(PlayerEntity player, World world, BlockPos pos, BlockState state)
m_155468_(C_1141_ p_155470_, C_1596_ p_155471_, C_4675_ p_155472_, C_2064_ arg3)
private int
a(cad arg0, gh arg1)
getOpenCount(Level arg0, BlockPos arg1)
method_31680(class_1937 arg0, class_2338 arg1)
getInRangeViewerCount(World world, BlockPos pos)
m_155457_(C_1596_ p_155459_, C_4675_ arg1)
public void
c(cad arg0, gh arg1, coc arg2)
recheckOpeners(Level arg0, BlockPos arg1, BlockState arg2)
method_31686(class_1937 arg0, class_2338 arg1, class_2680 arg2)
updateViewerCount(World world, BlockPos pos, BlockState state)
m_155476_(C_1596_ p_155478_, C_4675_ p_155479_, C_2064_ arg2)
public int
a()
getOpenerCount()
method_31678()
getViewerCount()
m_155450_()
private static void
d(cad arg0, gh arg1, coc arg2)
scheduleRecheck(Level arg0, BlockPos arg1, BlockState arg2)
method_31687(class_1937 arg0, class_2338 arg1, class_2680 arg2)
scheduleBlockTick(World world, BlockPos pos, BlockState state)
m_155480_(C_1596_ p_155481_, C_4675_ p_155482_, C_2064_ p_155483_)