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<AttributeModifierTemperatureEffect.Config> Applies attribute modifiers to entitiesstatic final TemperatureEffect<DamageTemperatureEffect.Config> Applies damage to entities on an intervalstatic final TemperatureEffect<EmptyTemperatureEffect.Config> An empty temperature effect; does nothing.static final TemperatureEffect<FunctionTemperatureEffect.Config> A temperature effect that executes a datapack function on an intervalApplies scaled attribute modifiers to entities based on their temperaturestatic final TemperatureEffect<SequenceTemperatureEffect.Config> A meta temperature effect that allows multiple child effects to be applied under the same conditions.static final TemperatureEffect<StatusEffectTemperatureEffect.Config> Applies status effects 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 -
SEQUENCE
A meta temperature effect that allows multiple child effects to be applied under the same conditions. -
FUNCTION
A temperature effect that executes a datapack function on an interval -
STATUS_EFFECT
Applies status effects to entities based on their temperature -
SCALING_ATTRIBUTE_MODIFIER
public static final TemperatureEffect<ScalingAttributeModifierTemperatureEffect.Config> SCALING_ATTRIBUTE_MODIFIERApplies scaled attribute modifiers to entities based on their temperature -
ATTRIBUTE_MODIFIER
Applies attribute modifiers to entities -
DAMAGE
Applies damage to entities on an interval- Since:
- 1.5
-
-
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
-