Enum Class HumidityType

java.lang.Object
java.lang.Enum<HumidityType>
forestry.api.core.HumidityType
All Implemented Interfaces:
Serializable, Comparable<HumidityType>, Constable

public enum HumidityType extends Enum<HumidityType>
Many things Forestry use temperature and humidity of a biome to determine whether they can or how they can work or spawn at a given location.

This enum concerns humidity.

  • Enum Constant Details

  • Field Details

    • VALUES

      public static final List<HumidityType> VALUES
    • tag

      public final net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome> tag
    • color

      public final int color
  • Method Details

    • values

      public static HumidityType[] 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 HumidityType 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
    • up

      public HumidityType up()
      Returns:
      The humidity one tolerance step above, going no higher than DAMP.
    • up

      public HumidityType up(int steps)
      Returns:
      The humidity for any number of tolerance steps above, going no higher than DAMP.
    • down

      public HumidityType down()
      Returns:
      The humidity one tolerance step below, going no lower than ARID.
    • down

      public HumidityType down(int steps)
      Returns:
      The humidity for any number of tolerance step below, going no lower than ARID.
    • isWetterOrEqual

      public boolean isWetterOrEqual(HumidityType other)
      Returns:
      If this humidity is wetter than or equal to another humidity.
    • isDrierOrEqual

      public boolean isDrierOrEqual(HumidityType other)
      Returns:
      If this humidity is drier than or equal to another humidity.
    • getFromValue

      public static HumidityType getFromValue(float downfall)
      Returns:
      The humidity type corresponding to a biome's downfall value.
      See Also: