SuspiciousStewEffectsEntry

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.item.component.SuspiciousStewEffectsEntry;

Members

createEffectInstance() as MobEffectInstance
script.zs
// Entry.createEffectInstance() as MobEffectInstance;
myEntry.createEffectInstance();

Return Type: MobEffectInstance

Getter
script.zs
// Entry.duration as int
myEntry.duration

Return Type: int

Getter
script.zs
// Entry.effect as MobEffect
myEntry.effect

Return Type: MobEffect

static of(effect as MobEffect, duration as int) as Entry
script.zs
// Entry.of(effect as MobEffect, duration as int) as SuspiciousStewEffectsEntry;
SuspiciousStewEffectsEntry.of(myMobEffect, myInt);

Parameters:

effect Type: MobEffect
duration Type: int

Return Type: SuspiciousStewEffectsEntry