Class StructureProperties

java.lang.Object
com.ryandw11.structure.structure.properties.StructureProperties

public class StructureProperties extends Object
Handles the StructureProperties config section of the structure.
  • Constructor Details

    • StructureProperties

      public StructureProperties(org.bukkit.configuration.file.FileConfiguration configuration)
      Create StructureProperties from a config file.
      Parameters:
      configuration - The configuration file.
    • StructureProperties

      public StructureProperties()
      Create StructureProperties using default values.
  • Method Details

    • canPlaceAir

      public boolean canPlaceAir()
      If the structure will place air.
      Returns:
      if the structure will place air.
    • setPlaceAir

      public void setPlaceAir(boolean placeAir)
      Set if the structure should place air.
      Parameters:
      placeAir - If the structure should place air.
    • isRandomRotation

      public boolean isRandomRotation()
      If the structure is randomly rotated.
      Returns:
      If the structure is randomly rotated.
    • setRandomRotation

      public void setRandomRotation(boolean randomRotation)
      Set if the structure is randomly rotated.
      Parameters:
      randomRotation - If the structure is randomly rotated.
    • isIgnoringPlants

      public boolean isIgnoringPlants()
      If the structure ignores plants.
      Returns:
      If the structure ignores plants.
    • setIgnorePlants

      public void setIgnorePlants(boolean ignorePlants)
      Set if the structure ignores plants.
      Parameters:
      ignorePlants - If the structure ignores plants.
    • canSpawnInWater

      public boolean canSpawnInWater()
      If the structure can spawn in water.
      Returns:
      If the structure can spawn in water.
    • setSpawnInWater

      public void setSpawnInWater(boolean spawnInWater)
      Set if the structure can spawn in water.
      Parameters:
      spawnInWater - If the structure can spawn in water.
    • canSpawnInLavaLakes

      public boolean canSpawnInLavaLakes()
      If the structure can spawn in lava lakes.
      Returns:
      If the structure can spawn in lava lakes.
    • setSpawnInLavaLakes

      public void setSpawnInLavaLakes(boolean spawnInLavaLakes)
      Set if the structure can spawn in lava lakes.
      Parameters:
      spawnInLavaLakes - If the structure can spawn in lava lakes.
    • canSpawnInVoid

      public boolean canSpawnInVoid()
      Get if the structure can spawn in the void.
      Returns:
      If the structure can spawn in the void.
    • setSpawnInVoid

      public void setSpawnInVoid(boolean spawnInVoid)
      Set if the structure should spawn in the void.

      Note: This option does nothing if spawning in the void is not enabled in the config file by the user.

      Parameters:
      spawnInVoid - If the structure should spawn in the void.
    • shouldIgnoreWater

      public boolean shouldIgnoreWater()
      Get if the structure should ignore water.
      Returns:
      If the structure should ignore water.
    • setIgnoreWater

      public void setIgnoreWater(boolean ignoreWater)
      Set if the structure should ignore water.
      Parameters:
      ignoreWater - If the structure should ignore water.