Class EnvironmentComponentTypes
java.lang.Object
com.github.thedeathlycow.thermoo.api.environment.component.EnvironmentComponentTypes
Stores the codec and component type keys for Thermoo's environment component map.
Mods may define their own component types in their own classes, they only need be registered to
ThermooRegistries.ENVIRONMENT_COMPONENT_TYPE.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<net.minecraft.component.ComponentMap> static final com.mojang.serialization.Codec<net.minecraft.component.ComponentType<?>> static final net.minecraft.component.ComponentType<Double> Stores relative humidity on a 0-1 percentage scale.static final net.minecraft.component.ComponentType<TemperatureRecord> Stores a temperature reading ina unitsuch as Celsius, Fahrenheit, Kelvin, or Rankine. -
Method Summary
-
Field Details
-
COMPONENT_TYPE_CODEC
public static final com.mojang.serialization.Codec<net.minecraft.component.ComponentType<?>> COMPONENT_TYPE_CODEC -
COMPONENT_MAP_CODEC
public static final com.mojang.serialization.Codec<net.minecraft.component.ComponentMap> COMPONENT_MAP_CODEC -
TEMPERATURE
Stores a temperature reading ina unitsuch as Celsius, Fahrenheit, Kelvin, or Rankine.- See Also:
-
RELATIVE_HUMIDITY
Stores relative humidity on a 0-1 percentage scale.Relative humidity is defined as "the ratio of how much water vapour is in the air to how much water vapour the air could potentially contain" [1] and is expressed here on a 0-1 scale.
- See Also:
-