Class EnvironmentComponentTypes

java.lang.Object
com.github.thedeathlycow.thermoo.api.environment.component.EnvironmentComponentTypes

public final class EnvironmentComponentTypes extends Object
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 Details

    • COMPONENT_TYPE_CODEC

      public static final com.mojang.serialization.Codec<net.minecraft.core.component.DataComponentType<?>> COMPONENT_TYPE_CODEC
    • COMPONENT_MAP_CODEC

      public static final com.mojang.serialization.Codec<net.minecraft.core.component.DataComponentMap> COMPONENT_MAP_CODEC
    • TEMPERATURE

      public static final net.minecraft.core.component.DataComponentType<TemperatureRecord> TEMPERATURE
      Stores a temperature reading in a unit such as Celsius, Fahrenheit, Kelvin, or Rankine.
      See Also:
    • RELATIVE_HUMIDITY

      public static final net.minecraft.core.component.DataComponentType<Double> 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: