SuspiciousStewForEmerald

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.villager.trade.type.SuspiciousStewForEmerald;

Implements

SuspiciousStewForEmerald implements the following interfaces:

ItemListing

Constructors

new(effect as MobEffect, duration as int, xp as int)
script.zs
// new SuspiciousStewForEmerald(effect as MobEffect, duration as int, xp as int);
new SuspiciousStewForEmerald(myMobEffect, myInt, myInt);

Parameters:

effect Type: MobEffect - The mob effect that the stew will give.
duration Type: int - How long will the effect last in ticks
xp Type: int - How much experience does this trade reward the villager

Members

getOffer(traderEntity as Entity, random as RandomSource) as MerchantOffer
script.zs
// SuspiciousStewForEmerald.getOffer(traderEntity as Entity, random as RandomSource) as MerchantOffer;
mySuspiciousStewForEmerald.getOffer(myEntity, myRandomSource);

Parameters:

traderEntity Type: Entity
random Type: RandomSource

Return Type: MerchantOffer