Package forestry.api.core
Enum Class HumidityType
- All Implemented Interfaces:
Serializable,Comparable<HumidityType>,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 humidity.
-
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.tags.TagKey<net.minecraft.world.level.biome.Biome>static final List<HumidityType> -
Method Summary
Modifier and TypeMethodDescriptiondown()down(int steps) static HumidityTypegetFromValue(float downfall) booleanisDrierOrEqual(HumidityType other) booleanisWetterOrEqual(HumidityType other) up()up(int steps) static HumidityTypeReturns the enum constant of this class with the specified name.static HumidityType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ARID
-
NORMAL
-
DAMP
-
-
Field Details
-
VALUES
-
tag
public final net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome> tag -
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 humidity one tolerance step above, going no higher than
DAMP.
-
up
- Returns:
- The humidity for any number of tolerance steps above, going no higher than
DAMP.
-
down
- Returns:
- The humidity one tolerance step below, going no lower than
ARID.
-
down
- Returns:
- The humidity for any number of tolerance step below, going no lower than
ARID.
-
isWetterOrEqual
- Returns:
- If this humidity is wetter than or equal to another humidity.
-
isDrierOrEqual
- Returns:
- If this humidity is drier than or equal to another humidity.
-
getFromValue
- Returns:
- The humidity type corresponding to a biome's downfall value.
- See Also:
-