Class NorthstarTemperature
java.lang.Object
com.lightning.northstar.world.temperature.NorthstarTemperature
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcombustionTemp(net.minecraft.world.level.material.FluidState state) voidenqueueUpdates(it.unimi.dsi.fastutil.longs.LongCollection positions) static voidevaporate(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) static floatgetBaseTemperature(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) static intgetBoilingPoint(net.minecraft.world.level.material.FluidState state) static NorthstarTemperaturegetDimension(net.minecraft.world.level.Level level) static intgetFreezingPoint(net.minecraft.world.level.material.FluidState state) static doublegetHeatConstant(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> level) static doublegetHeatRating(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> level) floatgetTemperatureAt(net.minecraft.core.Vec3i pos) static floatgetTemperatureAt(net.minecraft.world.level.Level level, net.minecraft.core.Vec3i pos) static floatgetTemperatureAt(net.minecraft.world.level.Level level, net.minecraft.world.phys.Vec3 pos) floatgetTemperatureAt(net.minecraft.world.phys.Vec3 pos) static booleanhasHeatProtection(net.minecraft.world.entity.LivingEntity entity) static booleanhasInsulation(net.minecraft.world.entity.LivingEntity entity) static booleanisCombustible(net.minecraft.world.level.material.FluidState state) static voidonPostRender(net.neoforged.neoforge.client.event.RenderLevelStageEvent event) voidprocessUpdates(net.minecraft.server.level.ServerLevel level) voidregisterSealer(NorthstarTemperature.Provider provider) static voidtickEntity(net.minecraft.world.entity.LivingEntity entity) void
-
Field Details
-
MINIMUM_TEMPERATURE
public static final int MINIMUM_TEMPERATURE- See Also:
-
MAXIMUM_TEMPERATURE
public static final int MAXIMUM_TEMPERATURE- See Also:
-
-
Constructor Details
-
NorthstarTemperature
public NorthstarTemperature(net.minecraft.world.level.Level level)
-
-
Method Details
-
getTemperatureAt
public float getTemperatureAt(net.minecraft.world.phys.Vec3 pos) -
getTemperatureAt
public float getTemperatureAt(net.minecraft.core.Vec3i pos) -
registerSealer
-
unregisterSealer
-
enqueueUpdates
public void enqueueUpdates(it.unimi.dsi.fastutil.longs.LongCollection positions) -
processUpdates
@Internal public void processUpdates(net.minecraft.server.level.ServerLevel level) -
getTemperatureAt
public static float getTemperatureAt(net.minecraft.world.level.Level level, net.minecraft.world.phys.Vec3 pos) -
getTemperatureAt
public static float getTemperatureAt(net.minecraft.world.level.Level level, net.minecraft.core.Vec3i pos) -
getDimension
-
getBaseTemperature
public static float getBaseTemperature(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) -
tickEntity
@Internal public static void tickEntity(net.minecraft.world.entity.LivingEntity entity) -
isCombustible
public static boolean isCombustible(net.minecraft.world.level.material.FluidState state) -
combustionTemp
public static int combustionTemp(net.minecraft.world.level.material.FluidState state) -
getBoilingPoint
public static int getBoilingPoint(net.minecraft.world.level.material.FluidState state) -
getFreezingPoint
public static int getFreezingPoint(net.minecraft.world.level.material.FluidState state) -
hasInsulation
public static boolean hasInsulation(net.minecraft.world.entity.LivingEntity entity) -
hasHeatProtection
public static boolean hasHeatProtection(net.minecraft.world.entity.LivingEntity entity) -
getHeatRating
public static double getHeatRating(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> level) -
getHeatConstant
public static double getHeatConstant(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> level) -
evaporate
public static void evaporate(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) -
onPostRender
public static void onPostRender(net.neoforged.neoforge.client.event.RenderLevelStageEvent event)
-