Class ChunkSpawnedNPCData

java.lang.Object
com.hypixel.hytale.server.spawning.world.component.ChunkSpawnedNPCData
All Implemented Interfaces:
Component<ChunkStore>, Cloneable

public class ChunkSpawnedNPCData extends Object implements Component<ChunkStore>
Contains persistent chunk spawn information for balanced NPC spawn distribution. Used by the ChunkSpawningSystems.
  • Field Details

  • Constructor Details

    • ChunkSpawnedNPCData

      public ChunkSpawnedNPCData()
  • Method Details

    • getComponentType

      public static ComponentType<ChunkStore, ChunkSpawnedNPCData> getComponentType()
    • getEnvironmentSpawnCount

      public double getEnvironmentSpawnCount(int environment)
    • setEnvironmentSpawnCount

      public void setEnvironmentSpawnCount(int environment, double count)
    • clone

      @Nonnull public Component<ChunkStore> clone()
      Specified by:
      clone in interface Component<ChunkStore>
      Returns:
      a clone instance of the original component instance.