Enum Class HeatingModes
- All Implemented Interfaces:
HeatingMode,Serializable,Comparable<HeatingModes>,Constable,net.minecraft.util.StringRepresentable
public enum HeatingModes
extends Enum<HeatingModes>
implements HeatingMode, net.minecraft.util.StringRepresentable
The three primary modes for adding and removing heat from a
TemperatureAware.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentable
net.minecraft.util.StringRepresentable.EnumCodec<E extends Enum<E> & net.minecraft.util.StringRepresentable>, net.minecraft.util.StringRepresentable.StringRepresentableCodec<S extends net.minecraft.util.StringRepresentable> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionApplies temperature changes absolutely - ignoring all resistance in all conditions.Always applies the relevant resistance for the change - cold resistance when the change is negative (decreasing temperature) and heat resistance when the change is positive (increasing temperature).Only applies thermal resistance when the target is currently in the relevant temperature range. -
Field Summary
Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD -
Method Summary
Modifier and TypeMethodDescriptionstatic HeatingModesReturns the enum constant of this class with the specified name.static HeatingModes[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface com.github.thedeathlycow.thermoo.api.temperature.HeatingMode
applyResistance
-
Enum Constant Details
-
ABSOLUTE
Applies temperature changes absolutely - ignoring all resistance in all conditions. Used as the default mode in commands or other debug environments. -
ACTIVE
Always applies the relevant resistance for the change - cold resistance when the change is negative (decreasing temperature) and heat resistance when the change is positive (increasing temperature).Used for non-environmental effects, like a Frostologer freezing their victim or an Enchantment that drains heat.
-
PASSIVE
Only applies thermal resistance when the target is currently in the relevant temperature range. For example, cold resistance is only applied to targets that are cold; and heat resistance only to targets that are warm.Used for passive effects, such as the temperature change of standing on ice or being near to a torch. This is not used for the environment temperature in
ServerPlayerEnvironmentTickEvents.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getSerializedName
- Specified by:
getSerializedNamein interfacenet.minecraft.util.StringRepresentable
-