Interface RandomTickPart

All Superinterfaces:
MultiPart
All Known Implementing Classes:
RedstoneTorchPart

public interface RandomTickPart extends MultiPart
Interface for parts with random update ticks.

Used in conjunction with TickScheduler

  • Method Details

    • randomTick

      void randomTick()
      Called on random update.

      Random ticks are between 800 and 1600 ticks from their last scheduled/random tick.

    • onChunkLoad

      default void onChunkLoad(net.minecraft.world.level.chunk.LevelChunk chunk)
      Description copied from interface: MultiPart
      Called when the containing chunk is loaded on the server.
      Specified by:
      onChunkLoad in interface MultiPart
      Parameters:
      chunk - The chunk.
    • onWorldJoin

      default void onWorldJoin()
      Description copied from interface: MultiPart
      Called when this part joins the world.

      This may be due to placement, chunk load, frames, etc.

      Use this to sync with external data structures.

      Called client and server side.

      Specified by:
      onWorldJoin in interface MultiPart