Contents
Class RandomTick
java.lang.Object
com.hypixel.hytale.builtin.randomtick.RandomTick
- All Implemented Interfaces:
Resource<ChunkStore>, Cloneable
-
Field Summary
Fields inherited from interface Resource
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()intThe number of blocks to randomly tick per section per tick.intThe number of blocks to randomly tick per section per tick.static ResourceType<ChunkStore, RandomTick>
-
Constructor Details
-
RandomTick
public RandomTick()
-
-
Method Details
-
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
-
clone
- Specified by:
clonein interfaceResource<ChunkStore>- Returns:
- a clone instance of the original resource instance.
-