Enum Class PlotAreaTerrainType

java.lang.Object
java.lang.Enum<PlotAreaTerrainType>
com.plotsquared.core.plot.PlotAreaTerrainType
All Implemented Interfaces:
Serializable, Comparable<PlotAreaTerrainType>, Constable

public enum PlotAreaTerrainType extends Enum<PlotAreaTerrainType>
  • Enum Constant Details

    • NONE

      public static final PlotAreaTerrainType NONE
      Don't use any vanilla world elements.
    • ORE

      public static final PlotAreaTerrainType ORE
      Generate vanilla ores.
    • ROAD

      public static final PlotAreaTerrainType ROAD
      Generate everything using the vanilla generator but with PS roads.
    • ALL

      public static final PlotAreaTerrainType ALL
      Generate everything using the vanilla generator.
  • Method Details

    • values

      public static PlotAreaTerrainType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PlotAreaTerrainType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromString

      public static Optional<PlotAreaTerrainType> fromString(String typeString)
    • fromLegacyInt

      @Deprecated public static Optional<PlotAreaTerrainType> fromLegacyInt(int typeId)
      Deprecated.