Class ChunkSpawnedNPCData
java.lang.Object
com.hypixel.hytale.server.spawning.world.component.ChunkSpawnedNPCData
- All Implemented Interfaces:
Component<ChunkStore>,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<ChunkSpawnedNPCData> private final it.unimi.dsi.fastutil.ints.Int2DoubleMapFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()doublegetEnvironmentSpawnCount(int environment) voidsetEnvironmentSpawnCount(int environment, double count) 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
-
CODEC
-
environmentSpawnCounts
private final it.unimi.dsi.fastutil.ints.Int2DoubleMap environmentSpawnCounts
-
-
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>- Overrides:
clonein classObject
-