IPotionEffect
Link to ipotioneffect
An IPotionEffect is an IPotion that also has a duration and an amplifier (strength) parameter.
You can get them from an IPotion object.
导入相关包
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.
import crafttweaker.potions.IPotionEffect;
ZenGetter
Link to zengetter
ZenGetter | 类型 |
---|---|
ZenGetter duration | 类型 int |
ZenGetter potion | 类型 IPotion |
ZenGetter doesShowParticles | 类型 bool |
ZenGetter amplifier | 类型 int |
ZenGetter curativeItems | 类型 List<IItemStack> |
ZenGetter effectName | 类型 string |
ZenGetter isAmbient | 类型 bool |
ZenGetter isPotionDurationMax (also a ZenSetter) | 类型 bool |
ZenMethods
Link to zenmethods
Is an item a curative item
Link to is-an-item-a-curative-item
Uses an IItemStack.
Returns a bool
ZenScript CopyisCurativeItem(IItemStack item);
Perform Effect on an Entity
Link to perform-effect-on-an-entity
Uses an IEntity or any of its subclasses (e.g. IPlayer).
Returns void (nothing).
ZenScript CopyperformEffect(IEntity Entity);