SuspiciousStewForEmerald
Link to suspiciousstewforemerald
导入类
Link to 导入类
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 Copyimport 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 Copynew 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 |