Class ChunkSpawnData
java.lang.Object
com.hypixel.hytale.server.spawning.world.component.ChunkSpawnData
- All Implemented Interfaces:
Component<ChunkStore>,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.ints.Int2ObjectMap<ChunkEnvironmentSpawnData> private longprivate booleanFields inherited from interface com.hypixel.hytale.component.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 java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.Component
cloneSerializable
-
Field Details
-
chunkEnvironmentSpawnDataMap
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<ChunkEnvironmentSpawnData> chunkEnvironmentSpawnDataMap -
started
private boolean started -
lastSpawn
private long lastSpawn
-
-
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>- Overrides:
clonein classObject
-
getEnvironmentSpawnData
-
isOnSpawnCooldown
public boolean isOnSpawnCooldown()
-