Package forestry.api.core
Enum Class TemperatureType
- All Implemented Interfaces:
Serializable,Comparable<TemperatureType>,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intfinal net.minecraft.resources.ResourceLocationfinal net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome>static final List<TemperatureType> -
Method Summary
Modifier and TypeMethodDescriptiondown()down(int steps) static TemperatureTypegetFromValue(float baseTemperature) booleanisCoolerOrEqual(TemperatureType other) booleanisWarmerOrEqual(TemperatureType other) up()up(int steps) static TemperatureTypeReturns the enum constant of this class with the specified name.static TemperatureType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ICY
-
COLD
-
NORMAL
-
WARM
-
HOT
-
HELLISH
-
-
Field Details
-
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
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
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 nameNullPointerException- if the argument is null
-
up
- Returns:
- The temperature one tolerance step above, going no higher than
HELLISH.
-
up
- Returns:
- The temperature for any number of tolerance steps above, going no higher than
HELLISH.
-
down
- Returns:
- The temperature one tolerance step below, going no lower than
ICY.
-
down
- Returns:
- The temperature for any number of tolerance step below, going no lower than
ICY.
-
isWarmerOrEqual
- Returns:
- If this temperature is warmer than or equal to another temperature.
-
isCoolerOrEqual
- Returns:
- If this temperature is cooler than or equal to another temperature.
-
getFromValue
- Returns:
- The temperature type corresponding to a biome's base temperature value.
- See Also:
-