Class TemplateMobEffect
java.lang.Object
com.github.thedeathlycow.thermoo.api.temperature.status.v2.effect.TemplateMobEffect
A class which stores template data for producing new instances of
MobEffectInstance.- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<TemplateMobEffect> The codec for this type. -
Method Summary
Modifier and TypeMethodDescriptionbooleanambient()Whether this is an ambient effect@Range(from=0L,to=255L) intThe amplifier of the effect instance@Range(from=0L,to=2147483647L) intduration()The duration of the effect instance in ticksnet.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> effect()The mob effect typebooleanshowIcon()Whether the icon for the effect should be shown on the clientbooleanvisible()Whether this effect's particles should be visible
-
Field Details
-
CODEC
The codec for this type.
-
-
Method Details
-
effect
public net.minecraft.core.Holder<net.minecraft.world.effect.MobEffect> effect()The mob effect type -
duration
public @Range(from=0L,to=2147483647L) int duration()The duration of the effect instance in ticks -
amplifier
public @Range(from=0L,to=255L) int amplifier()The amplifier of the effect instance -
ambient
public boolean ambient()Whether this is an ambient effect -
visible
public boolean visible()Whether this effect's particles should be visible -
showIcon
public boolean showIcon()Whether the icon for the effect should be shown on the client
-