Class ContainerOpenersCounter
java.lang.Object
net.minecraft.world.level.block.entity.ContainerOpenersCounter
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
decrementOpeners
(Player p_155469_, Level p_155470_, BlockPos p_155471_, BlockState p_155472_) private int
getOpenCount
(Level p_155458_, BlockPos p_155459_) int
void
incrementOpeners
(Player p_155453_, Level p_155454_, BlockPos p_155455_, BlockState p_155456_) protected abstract boolean
isOwnContainer
(Player p_155451_) protected abstract void
onClose
(Level p_155473_, BlockPos p_155474_, BlockState p_155475_) protected abstract void
onOpen
(Level p_155460_, BlockPos p_155461_, BlockState p_155462_) protected abstract void
openerCountChanged
(Level p_155463_, BlockPos p_155464_, BlockState p_155465_, int p_155466_, int p_155467_) void
recheckOpeners
(Level p_155477_, BlockPos p_155478_, BlockState p_155479_) private static void
scheduleRecheck
(Level p_155481_, BlockPos p_155482_, BlockState p_155483_)
-
Field Details
-
CHECK_TICK_DELAY
private static final int CHECK_TICK_DELAY- See Also:
-
openCount
private int openCount
-
-
Constructor Details
-
ContainerOpenersCounter
public ContainerOpenersCounter()
-
-
Method Details
-
onOpen
-
onClose
-
openerCountChanged
protected abstract void openerCountChanged(Level p_155463_, BlockPos p_155464_, BlockState p_155465_, int p_155466_, int p_155467_) -
isOwnContainer
-
incrementOpeners
public void incrementOpeners(Player p_155453_, Level p_155454_, BlockPos p_155455_, BlockState p_155456_) -
decrementOpeners
public void decrementOpeners(Player p_155469_, Level p_155470_, BlockPos p_155471_, BlockState p_155472_) -
getOpenCount
-
recheckOpeners
-
getOpenerCount
public int getOpenerCount() -
scheduleRecheck
-