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 @Nullable ConfiguredTemperatureEffect<?> getEffect(net.minecraft.util.Identifier id) Gets the effect from an ID.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
-
getEffect
@Nullable public static @Nullable ConfiguredTemperatureEffect<?> getEffect(net.minecraft.util.Identifier id) Gets the effect from an ID.- Returns:
- Returns the effect with the given id, or null if not present.
-
getLoadedConfiguredEffects
- Returns:
- Returns all currently loaded
ConfiguredTemperatureEffects
-