Enum Class Projection

java.lang.Object
java.lang.Enum<Projection>
dev.wyck.worldgen.structure.pools.Projection
All Implemented Interfaces:
WrappedEnumerator<Projection>, Serializable, Comparable<Projection>, Constable

@NullMarked @AsOf("3.4.0") public enum Projection extends Enum<Projection> implements WrappedEnumerator<Projection>
How a pool element is fitted to the terrain it is placed on.
Since:
3.4.0
See Also:
  • Enum Constant Details

    • TERRAIN_MATCHING

      public static final Projection TERRAIN_MATCHING
      The element follows the terrain, each column dropped onto the world surface. Used for paths.
    • RIGID

      public static final Projection RIGID
      The element is placed exactly as saved. Used for buildings.
  • Field Details

  • Method Details

    • values

      public static Projection[] 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 Projection 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
    • translator

      @AsOf("3.4.0") public KeyedEnumTranslator<Projection> translator()
      Specified by:
      translator in interface WrappedEnumerator<Projection>
    • getKey

      @AsOf("3.4.0") public String getKey()
      The vanilla name for this Projection
      Returns:
      the vanilla key for this enum value
      Since:
      3.4.0