Class RoleSpawnParameters

java.lang.Object
com.hypixel.hytale.server.spawning.assets.spawns.config.RoleSpawnParameters
All Implemented Interfaces:
IWeightedElement

public class RoleSpawnParameters extends Object implements IWeightedElement
  • Field Details

    • CODEC

      public static final BuilderCodec<RoleSpawnParameters> CODEC
    • EMPTY_ARRAY

      public static final RoleSpawnParameters[] EMPTY_ARRAY
    • id

      protected String id
    • weight

      protected double weight
    • spawnBlockSet

      protected String spawnBlockSet
    • spawnBlockSetIndex

      protected int spawnBlockSetIndex
    • spawnFluidTag

      protected String spawnFluidTag
    • spawnFluidTagIndex

      protected int spawnFluidTagIndex
    • flockDefinitionId

      protected String flockDefinitionId
    • flockDefinitionIndex

      protected int flockDefinitionIndex
  • Constructor Details

    • RoleSpawnParameters

      public RoleSpawnParameters(String id, double weight, String spawnBlockSet, String flockDefinitionId)
    • RoleSpawnParameters

      protected RoleSpawnParameters()
  • Method Details

    • getId

      public String getId()
    • getWeight

      public double getWeight()
      Specified by:
      getWeight in interface IWeightedElement
    • getSpawnBlockSet

      public String getSpawnBlockSet()
    • getSpawnBlockSetIndex

      public int getSpawnBlockSetIndex()
    • getSpawnFluidTagIndex

      public int getSpawnFluidTagIndex()
    • getFlockDefinitionId

      public String getFlockDefinitionId()
    • getFlockDefinitionIndex

      public int getFlockDefinitionIndex()
    • getFlockDefinition

      @Nullable public FlockAsset getFlockDefinition()
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object