IPotionType
Link to ipotiontype
导入相关包
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.IPotionType;
Getting an IPotionType object
Link to getting-an-ipotiontype-object
You can get such an object through the use of the PotionType Bracket handler
ZenScript Copy<potiontype:minecraft:long_strength>;
ZenGetter
Link to zengetter
ZenGetter | 类型 |
---|---|
ZenGetter | 类型 |
ZenGetter effects | 类型 List<IPotionEffect> |
ZenMethods
Link to zenmethods
Imitate the PotionType Bracket Handler
Link to imitate-the-potiontype-bracket-handler
This method does the same as the PotionType Bracket Handler.
Copy//fromString(String potiontype);
IPotionType.fromString("minecraft:mundane");