net.minecraft.world.level.block.entity

public abstract class ContainerOpenersCounter

cts
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(cgx arg0, gt arg1, cvo 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(cgx arg0, gt arg1, cvo 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(cgx arg0, gt arg1, cvo 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(buc arg0)
isOwnContainer(Player arg0)
method_31679(class_1657 arg0)
isPlayerViewing(PlayerEntity player)
m_142718_(C_1141_ arg0)
public void
a(buc arg0, cgx arg1, gt arg2, cvo 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(buc arg0, cgx arg1, gt arg2, cvo 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(cgx arg0, gt 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(cgx arg0, gt arg1, cvo 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(cgx arg0, gt arg1, cvo 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_)