Class BlockEntityOnLoadTest.TestBlockEntity

All Implemented Interfaces:
ICapabilityProvider, ICapabilitySerializable<CompoundTag>, IForgeBlockEntity, INBTSerializable<CompoundTag>
Enclosing class:
BlockEntityOnLoadTest

private static class BlockEntityOnLoadTest.TestBlockEntity extends BlockEntity
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • loaded

      private boolean loaded
    • first

      private boolean first
  • Constructor Details

  • Method Details

    • onLoad

      public void onLoad()
      Description copied from interface: IForgeBlockEntity
      Called when this is first added to the world (by LevelChunk.addAndRegisterBlockEntity(BlockEntity)) or right before the first tick when the chunk is generated or loaded from disk. Override instead of adding if (firstTick) stuff in update.
    • tick

      public void tick()