MobEffect
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.
Implements
Undocumented Interfaces
FeatureElement
,IMobEffectExtension
Members
Returns: The effect with the added modifier.
Parameters:
value: double
Type: double
- The value of the modifier.
Return Type:
MobEffect
Parameters:
amplifier: int
Type: int
- The amplifier of the effect. Parameters:
amplifier: int
Type: int
- The amplifier of the effect. effectiveness: double
Type: double
- The effectiveness of the effect.
Return Type:
bool
Returns: True if the effect is beneficial, false otherwise.
Return Type:
bool
MobEffectCategory
of the effect.Returns: The MobEffectCategory
of the effect.
Return Type:
MobEffectCategory
Return Type:
int
Returns: The color of the effect.
Return Type:
int
Return Type:
string
Returns: The command string of the effect.
Return Type:
string
Return Type:
string
Returns: The description ID of the effect.
Return Type:
string
AttributeModifier
that this effect adds with the given amplifier.Returns: The AttributeModifier
that this effect adds with the given amplifier.
Parameters:
amplifier: int
Type: int
- The amplifier of the effect.
Return Type:
AttributeModifier[Attribute]
Return Type:
bool
Returns: True if the effect is instantenous, false otherwise.
Return Type:
bool
Return Type:
ResourceLocation
Returns: The registry name of the effect.
Return Type:
ResourceLocation
Returns: True if the effect should be applied this tick, false otherwise.
Parameters:
duration: int
Type: int
- The duration of the effect. amplifier: int
Type: int
- The amplifier of the effect.
Return Type:
bool