Contents
Class ChunkSpawnData
java.lang.Object
com.hypixel.hytale.server.spawning.world.component.ChunkSpawnData
- All Implemented Interfaces:
Component<ChunkStore>, Cloneable
A component containing transient information per chunk for use in environment spawning. Used by the
ChunkSpawningSystems.-
Field Summary
Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()it.unimi.dsi.fastutil.ints.Int2ObjectMap<ChunkEnvironmentSpawnData> static ComponentType<ChunkStore, ChunkSpawnData> getEnvironmentSpawnData(int environment) longbooleanbooleanvoidsetLastSpawn(long lastSpawn) voidsetStarted(boolean started) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Constructor Details
-
ChunkSpawnData
public ChunkSpawnData()
-
-
Method Details
-
getComponentType
-
getChunkEnvironmentSpawnDataMap
@Nonnull public it.unimi.dsi.fastutil.ints.Int2ObjectMap<ChunkEnvironmentSpawnData> getChunkEnvironmentSpawnDataMap() -
isStarted
public boolean isStarted() -
setStarted
public void setStarted(boolean started) -
setLastSpawn
public void setLastSpawn(long lastSpawn) -
getLastSpawn
public long getLastSpawn() -
clone
- Specified by:
clonein interfaceComponent<ChunkStore>- Returns:
- a clone instance of the original component instance.
-
getEnvironmentSpawnData
-
isOnSpawnCooldown
public boolean isOnSpawnCooldown()
-