Class NorthstarTemperature
java.lang.Object
com.lightning.northstar.world.temperature.NorthstarTemperature
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic 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) floatgetBaseTemperature(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) floatgetTemperature(net.minecraft.core.Vec3i pos) floatgetTemperature(net.minecraft.core.Vec3i pos, boolean includeDefault) static floatgetTemperature(net.minecraft.world.level.Level level, net.minecraft.core.Vec3i pos) static floatgetTemperature(net.minecraft.world.level.Level level, net.minecraft.world.phys.Vec3 pos) floatgetTemperature(net.minecraft.world.phys.Vec3 pos) floatgetTemperature(net.minecraft.world.phys.Vec3 pos, boolean includeDefault) floatgetTemperatureAt(net.minecraft.core.Vec3i pos) Deprecated, for removal: This API element is subject to removal in a future version.static floatgetTemperatureAt(net.minecraft.world.level.Level level, net.minecraft.core.Vec3i pos) Deprecated, for removal: This API element is subject to removal in a future version.replace withgetTemperature(Level, Vec3i)static floatgetTemperatureAt(net.minecraft.world.level.Level level, net.minecraft.world.phys.Vec3 pos) Deprecated, for removal: This API element is subject to removal in a future version.replace withgetTemperature(Level, Vec3)floatgetTemperatureAt(net.minecraft.world.phys.Vec3 pos) Deprecated, for removal: This API element is subject to removal in a future version.replace withgetTemperature(Vec3)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) booleanisSealed(net.minecraft.core.Vec3i pos) static booleanisSealed(net.minecraft.world.level.Level level, net.minecraft.core.Vec3i pos) static booleanisSealed(net.minecraft.world.level.Level level, net.minecraft.world.phys.Vec3 pos) booleanisSealed(net.minecraft.world.phys.Vec3 pos) booleanisUltraWarm(net.minecraft.core.BlockPos pos, float critical) booleanisUltraWarm(net.minecraft.core.BlockPos pos, float critical, boolean ultraWarm) static voidonPostRender(net.neoforged.neoforge.client.event.RenderLevelStageEvent event) voidvoidprocessUpdates(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:
-
SPACE
public static final int SPACE- See Also:
-
DEFAULT
public static final int DEFAULT- See Also:
-
-
Constructor Details
-
NorthstarTemperature
public NorthstarTemperature(net.minecraft.world.level.Level level)
-
-
Method Details
-
onResourceReload
@Internal public void onResourceReload() -
isSealed
public boolean isSealed(net.minecraft.core.Vec3i pos) -
isSealed
public boolean isSealed(net.minecraft.world.phys.Vec3 pos) -
getTemperatureAt
@Deprecated(since="0.6.5", forRemoval=true) public float getTemperatureAt(net.minecraft.world.phys.Vec3 pos) Deprecated, for removal: This API element is subject to removal in a future version.replace withgetTemperature(Vec3) -
getTemperatureAt
@Deprecated(since="0.6.5", forRemoval=true) public float getTemperatureAt(net.minecraft.core.Vec3i pos) Deprecated, for removal: This API element is subject to removal in a future version.replace withgetTemperature(Vec3i) -
getTemperature
public float getTemperature(net.minecraft.world.phys.Vec3 pos) -
getTemperature
public float getTemperature(net.minecraft.core.Vec3i pos) -
getTemperature
public float getTemperature(net.minecraft.world.phys.Vec3 pos, boolean includeDefault) -
getTemperature
public float getTemperature(net.minecraft.core.Vec3i pos, boolean includeDefault) -
getBaseTemperature
public float getBaseTemperature(net.minecraft.core.BlockPos pos) -
isUltraWarm
public boolean isUltraWarm(net.minecraft.core.BlockPos pos, float critical) -
isUltraWarm
public boolean isUltraWarm(net.minecraft.core.BlockPos pos, float critical, boolean ultraWarm) -
registerSealer
-
unregisterSealer
-
enqueueUpdates
public void enqueueUpdates(it.unimi.dsi.fastutil.longs.LongCollection positions) -
processUpdates
@Internal public void processUpdates(net.minecraft.server.level.ServerLevel level) -
isSealed
public static boolean isSealed(net.minecraft.world.level.Level level, net.minecraft.world.phys.Vec3 pos) -
isSealed
public static boolean isSealed(net.minecraft.world.level.Level level, net.minecraft.core.Vec3i pos) -
getTemperature
public static float getTemperature(net.minecraft.world.level.Level level, net.minecraft.world.phys.Vec3 pos) -
getTemperature
public static float getTemperature(net.minecraft.world.level.Level level, net.minecraft.core.Vec3i pos) -
getTemperatureAt
@Deprecated(since="0.6.5", forRemoval=true) public static float getTemperatureAt(net.minecraft.world.level.Level level, net.minecraft.world.phys.Vec3 pos) Deprecated, for removal: This API element is subject to removal in a future version.replace withgetTemperature(Level, Vec3) -
getTemperatureAt
@Deprecated(since="0.6.5", forRemoval=true) public static float getTemperatureAt(net.minecraft.world.level.Level level, net.minecraft.core.Vec3i pos) Deprecated, for removal: This API element is subject to removal in a future version.replace withgetTemperature(Level, Vec3i) -
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) -
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)
-
getTemperature(Vec3i)