SuspiciousStewForEmerald

Link to suspiciousstewforemerald

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.

ZenScript
Copy
import crafttweaker.api.villager.trade.type.SuspiciousStewForEmerald;

已实现的接口

Link to 已实现的接口

SuspiciousStewForEmerald implements the following interfaces. That means all methods defined in these interfaces are also available in SuspiciousStewForEmerald

Constructor #构造函数

Link to constructor-构造函数

ZenScript
Copy
new SuspiciousStewForEmerald(effect as MobEffect, duration as int, xp as int) as SuspiciousStewForEmerald
new SuspiciousStewForEmerald(<effect:minecraft:haste>, 200, 2);
参数类型描述
参数
effect
类型
MobEffect
描述
The mob effect that the stew will give.
参数
duration
类型
int
描述
How long will the effect last in ticks
参数
xp (经验值)
类型
int
描述
How much experience does this trade reward the villager