Class TemperatureEffects
java.lang.Object
com.github.thedeathlycow.thermoo.api.temperature.effects.TemperatureEffects
A container class that contains all the various temperature effect types provided by Thermoo. You can, of course, create
your own effects for your mod. As an example, see melt damage in Frostiful!
Note that they are actually registered outside the API in ThermooCommonRegisters.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TemperatureEffect<?>Applies damage to entities on an intervalstatic final TemperatureEffect<?>An empty temperature effect; does nothing.static final TemperatureEffect<?>Deprecated.static final TemperatureEffect<?>Applies scaledEntityAttributeModifiers to entities based on their temperaturestatic final TemperatureEffect<?>AppliesStatusEffects to entities based on their temperature -
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<ConfiguredTemperatureEffect<?>>getEffectsForEntity(net.minecraft.entity.LivingEntity entity) Returns all currently loadedConfiguredTemperatureEffects that are mapped to theentity's type.static Collection<ConfiguredTemperatureEffect<?>>
-
Field Details
-
EMPTY
An empty temperature effect; does nothing. Useful for overriding effects from mods or other datapacks -
STATUS_EFFECT
AppliesStatusEffects to entities based on their temperature -
SCALING_ATTRIBUTE_MODIFIER
Applies scaledEntityAttributeModifiers to entities based on their temperature -
DAMAGE
Applies damage to entities on an interval- Since:
- 1.5
-
FREEZE_DAMAGE_LEGACY
Deprecated.As of 1.5, you should useDAMAGEinstead, as it does not hardcode a damage sourceSpecifically appliesDamageSources.freeze()to entities based on their temperature
-
-
Method Details
-
getEffectsForEntity
public static Collection<ConfiguredTemperatureEffect<?>> getEffectsForEntity(net.minecraft.entity.LivingEntity entity) Returns all currently loadedConfiguredTemperatureEffects that are mapped to theentity's type.- Parameters:
entity- The entity to fetch the effects for- Returns:
- Returns the effects loaded for the entity type
-
getLoadedConfiguredEffects
- Returns:
- Returns all currently loaded
ConfiguredTemperatureEffects
-
DAMAGEinstead, as it does not hardcode a damage source