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 intervalstatic final TemperatureEffect<StatusEffectTemperatureEffect.Config> Applies mob effects to entities based on their temperatureApplies 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> Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable ConfiguredTemperatureEffect<?> getEffect(net.minecraft.resources.ResourceLocation location) Gets the effect from a resource location.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 -
MOB_EFFECT
Applies mob effects to entities based on their temperature -
STATUS_EFFECT
@Deprecated(since="8.1.0", forRemoval=true) public static final TemperatureEffect<StatusEffectTemperatureEffect.Config> STATUS_EFFECTDeprecated, for removal: This API element is subject to removal in a future version.This field was named based on Yarn Mappings, useMOB_EFFECTto better conform to Official Mappings. Also note that when this field is removed, the underlying class will also be renamed to MobEffectTemperatureEffect. -
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.resources.ResourceLocation location) Gets the effect from a resource location.- Returns:
- Returns the effect with the given resource location, or null if not present.
-
getLoadedConfiguredEffects
- Returns:
- Returns all currently loaded
ConfiguredTemperatureEffects
-
MOB_EFFECTto better conform to Official Mappings.