Class RandomTick

java.lang.Object
com.hypixel.hytale.builtin.randomtick.RandomTick
All Implemented Interfaces:
Resource<ChunkStore>, Cloneable

public class RandomTick extends Object implements Resource<ChunkStore>
  • Constructor Details

    • RandomTick

      public RandomTick()
  • Method Details

    • getResourceType

      public static ResourceType<ChunkStore, RandomTick> getResourceType()
    • getBlocksPerSectionPerTickStable

      public int getBlocksPerSectionPerTickStable()
      The number of blocks to randomly tick per section per tick.

      The stable tick isn't very random but ensures every block in a chunk gets ticked once every cycle (before ticking the first block again).

    • getBlocksPerSectionPerTickUnstable

      public int getBlocksPerSectionPerTickUnstable()
      The number of blocks to randomly tick per section per tick.

      The unstable tick is more random but doesn't guarantee every block in a chunk gets ticked once every cycle. Just uses a random number generator to pick blocks to tick, so some blocks may get ticked multiple times before others get ticked once.

    • getRandom

      public Random getRandom()
    • clone

      @Nullable public Resource<ChunkStore> clone()
      Specified by:
      clone in interface Resource<ChunkStore>
      Returns:
      a clone instance of the original resource instance.