Potion
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.
import crafttweaker.api.item.alchemy.Potion;
Members
Getter
// Potion.commandString as stringmyPotion.commandString
Return Type:
string
Getter
myPotion.effects
Return Type:
List<MobEffectInstance>
effects() as List<MobEffectInstance>
getName(prefix as string) as string
// Potion.getName(prefix as string) as string;myPotion.getName(myString);
Parameters:
prefix: string
Type: string
Return Type:
string
Getter
// Potion.hasInstantEffects as boolmyPotion.hasInstantEffects
Return Type:
bool
hasInstantEffects() as bool
// Potion.hasInstantEffects() as bool;myPotion.hasInstantEffects();
Return Type:
bool
Getter
// Potion.registryName as ResourceLocationmyPotion.registryName
Return Type:
ResourceLocation
registryName() as ResourceLocation