Class GeneratorConfiguration.StructureGeneration

java.lang.Object
de.freesoccerhdx.advancedworldcreatorapi.GeneratorConfiguration.StructureGeneration
Enclosing class:
GeneratorConfiguration

public static class GeneratorConfiguration.StructureGeneration extends Object
Represents the Configuration of the Structureplacement e.g. How often Structures like Villages or Mineshafts can spawn
  • Constructor Details

    • StructureGeneration

      public StructureGeneration(boolean useOverworld)
      Creates the Structure-Object with all the default Structureinformation from the Overworld
      Parameters:
      useOverworld - - Whether the World has default Overworld-Settings or not
    • StructureGeneration

      public StructureGeneration()
      Creates the Structure-Object with no allowed Structure to spawn by default
  • Method Details

    • addStructureTypeInfo

      public void addStructureTypeInfo(org.bukkit.StructureType structureType, GeneratorConfiguration.StructureInfo structureInfo)
      Adds a StructureType with its StructureInfo to the StructureGeneration
      Parameters:
      structureType - The Structure to add
      structureInfo - The Create-Information
    • getStructureInfos

      public HashMap<org.bukkit.StructureType,GeneratorConfiguration.StructureInfo> getStructureInfos()
      Gets the full Data of the StructureGeneration for the World
      Returns:
      The StructureGeneration-Data