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;
Implements
Undocumented Interfaces
FeatureElement
Members
Getter
// Potion.commandString as stringmyPotion.commandString
Return Type:
string
Getter
myPotion.effects
Return Type:
List<MobEffectInstance>
effects() as List<MobEffectInstance>
static getName(prefix as string, potion as Potion = null) as 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