SuspiciousStewForEmerald
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
import crafttweaker.api.villager.trade.type.SuspiciousStewForEmerald;
Implemented Interfaces
SuspiciousStewForEmerald implements the following interfaces. That means all methods defined in these interfaces are also available in SuspiciousStewForEmerald
Constructors
new SuspiciousStewForEmerald(effect as MobEffect, duration as int, xp as int) as SuspiciousStewForEmeraldnew SuspiciousStewForEmerald(<effect:minecraft:haste>, 200, 2);
Parameter | Type | Description |
---|---|---|
Parameter effect | Type MobEffect | Description The mob effect that the stew will give. |
Parameter duration | Type int | Description How long will the effect last in ticks |
Parameter xp | Type int | Description How much experience does this trade reward the villager |