Class BasicContainerOpenersCounter

java.lang.Object
net.minecraft.world.level.block.entity.ContainerOpenersCounter
net.tearpelato.deco_lib.api.block_entity.BasicContainerOpenersCounter

public class BasicContainerOpenersCounter extends net.minecraft.world.level.block.entity.ContainerOpenersCounter
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    isOwnContainer(net.minecraft.world.entity.player.Player player)
     
    protected void
    onClose(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
    protected void
    onOpen(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
    protected void
    openerCountChanged(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, int oldCount, int count)
     

    Methods inherited from class net.minecraft.world.level.block.entity.ContainerOpenersCounter

    decrementOpeners, getOpenerCount, incrementOpeners, recheckOpeners

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BasicContainerOpenersCounter

      public BasicContainerOpenersCounter(BasicLootBlockEntity blockEntity)
  • Method Details

    • onOpen

      protected void onOpen(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
      Specified by:
      onOpen in class net.minecraft.world.level.block.entity.ContainerOpenersCounter
    • onClose

      protected void onClose(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
      Specified by:
      onClose in class net.minecraft.world.level.block.entity.ContainerOpenersCounter
    • openerCountChanged

      protected void openerCountChanged(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, int oldCount, int count)
      Specified by:
      openerCountChanged in class net.minecraft.world.level.block.entity.ContainerOpenersCounter
    • isOwnContainer

      protected boolean isOwnContainer(net.minecraft.world.entity.player.Player player)
      Specified by:
      isOwnContainer in class net.minecraft.world.level.block.entity.ContainerOpenersCounter