Class MercuryTemperatureFunction

java.lang.Object
com.lightning.northstar.planet.data.func.MercuryTemperatureFunction
All Implemented Interfaces:
LevelFunction

@Internal @ParametersAreNonnullByDefault public class MercuryTemperatureFunction extends Object implements LevelFunction
Temporary implementation of Mercury's temperature function until the expression functions are fully ready
  • Field Details

    • TYPE

      public static final net.minecraft.resources.ResourceLocation TYPE
    • CODEC

      public static final com.mojang.serialization.MapCodec<MercuryTemperatureFunction> CODEC
  • Constructor Details

    • MercuryTemperatureFunction

      public MercuryTemperatureFunction()
  • Method Details

    • type

      public net.minecraft.resources.ResourceLocation type()
      Specified by:
      type in interface LevelFunction
    • get

      public float get(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
      Specified by:
      get in interface LevelFunction