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.
Implements
Undocumented Interfaces
FeatureElement
Members
Getter
Gets the command string of the potion.
Return Type:
string
Getter
Gets the effects of the potion.
Return Type:
List<MobEffectInstance>
effects() as List<MobEffectInstance>
Getter
Checks if the potion has instant effects.
Return Type:
bool
hasInstantEffects() as bool
Checks if the potion has instant effects.
Returns: True if the potion has instant effects, false otherwise.
Return Type:
bool
Getter
Gets the registry name of the potion.
Return Type:
ResourceLocation
registryName() as ResourceLocation