Contents
Class ChunkSpawnedNPCData
java.lang.Object
com.hypixel.hytale.server.spawning.world.component.ChunkSpawnedNPCData
- All Implemented Interfaces:
Component<ChunkStore>, Cloneable
Contains persistent chunk spawn information for balanced NPC spawn distribution. Used by the
ChunkSpawningSystems.-
Field Summary
FieldsFields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()static ComponentType<ChunkStore, ChunkSpawnedNPCData> doublegetEnvironmentSpawnCount(int environment) voidsetEnvironmentSpawnCount(int environment, double count) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Field Details
-
CODEC
-
-
Constructor Details
-
ChunkSpawnedNPCData
public ChunkSpawnedNPCData()
-
-
Method Details
-
getComponentType
-
getEnvironmentSpawnCount
public double getEnvironmentSpawnCount(int environment) -
setEnvironmentSpawnCount
public void setEnvironmentSpawnCount(int environment, double count) -
clone
- Specified by:
clonein interfaceComponent<ChunkStore>- Returns:
- a clone instance of the original component instance.
-