Enum Class TemperatureType

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

public enum TemperatureType extends Enum<TemperatureType>
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 temperature.

  • Enum Constant Details

  • Field Details

    • VALUES

      public static final List<TemperatureType> VALUES
    • tag

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

      public final net.minecraft.resources.ResourceLocation iconTexture
    • color

      public final int color
  • Method Details

    • values

      public static TemperatureType[] 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 TemperatureType 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 TemperatureType up()
      Returns:
      The temperature one tolerance step above, going no higher than HELLISH.
    • up

      public TemperatureType up(int steps)
      Returns:
      The temperature for any number of tolerance steps above, going no higher than HELLISH.
    • down

      public TemperatureType down()
      Returns:
      The temperature one tolerance step below, going no lower than ICY.
    • down

      public TemperatureType down(int steps)
      Returns:
      The temperature for any number of tolerance step below, going no lower than ICY.
    • isWarmerOrEqual

      public boolean isWarmerOrEqual(TemperatureType other)
      Returns:
      If this temperature is warmer than or equal to another temperature.
    • isCoolerOrEqual

      public boolean isCoolerOrEqual(TemperatureType other)
      Returns:
      If this temperature is cooler than or equal to another temperature.
    • getFromValue

      public static TemperatureType getFromValue(float baseTemperature)
      Returns:
      The temperature type corresponding to a biome's base temperature value.
      See Also: