MobEffectCategory

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.entity.effect.MobEffectCategory;

Implements

Undocumented Interfaces

Comparable<Enum>

Enum Constants

MobEffectCategory is an enum with 3 constants. They are accessible like so:

script.zs
// MobEffectCategory.BENEFICIAL
<constant:minecraft:mobeffect/category:beneficial>
// MobEffectCategory.HARMFUL
<constant:minecraft:mobeffect/category:harmful>
// MobEffectCategory.NEUTRAL
<constant:minecraft:mobeffect/category:neutral>

Members

Getter
script.zs
// MobEffectCategory.tooltipFormatting as ChatFormatting
<constant:minecraft:mobeffect/category:beneficial>.tooltipFormatting

Return Type: ChatFormatting

tooltipFormatting() as ChatFormatting
script.zs
// MobEffectCategory.tooltipFormatting() as ChatFormatting;
<constant:minecraft:mobeffect/category:beneficial>.tooltipFormatting();

Return Type: ChatFormatting