Class ContainerOpenersCounter

java.lang.Object
net.minecraft.world.level.block.entity.ContainerOpenersCounter

public abstract class ContainerOpenersCounter extends Object
  • Field Details

    • CHECK_TICK_DELAY

      private static final int CHECK_TICK_DELAY
      See Also:
      Constant Field Values
    • openCount

      private int openCount
  • Constructor Details

    • ContainerOpenersCounter

      public ContainerOpenersCounter()
  • Method Details

    • onOpen

      protected abstract void onOpen(Level p_155460_, BlockPos p_155461_, BlockState p_155462_)
    • onClose

      protected abstract void onClose(Level p_155473_, BlockPos p_155474_, BlockState p_155475_)
    • openerCountChanged

      protected abstract void openerCountChanged(Level p_155463_, BlockPos p_155464_, BlockState p_155465_, int p_155466_, int p_155467_)
    • isOwnContainer

      protected abstract boolean isOwnContainer(Player p_155451_)
    • 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

      private int getOpenCount(Level p_155458_, BlockPos p_155459_)
    • recheckOpeners

      public void recheckOpeners(Level p_155477_, BlockPos p_155478_, BlockState p_155479_)
    • getOpenerCount

      public int getOpenerCount()
    • scheduleRecheck

      private static void scheduleRecheck(Level p_155481_, BlockPos p_155482_, BlockState p_155483_)