Class ExpandPotion
java.lang.Object
com.blamejared.crafttweaker.natives.item.alchemy.ExpandPotion
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetCommandString(net.minecraft.world.item.alchemy.Potion internal) Gets the command string of the potion.static List<net.minecraft.world.effect.MobEffectInstance> getEffects(net.minecraft.world.item.alchemy.Potion internal) Gets the effects of the potion.static StringGets the name of the potion.static net.minecraft.resources.ResourceLocationgetRegistryName(net.minecraft.world.item.alchemy.Potion internal) Gets the registry name of the potion.static booleanhasInstantEffects(net.minecraft.world.item.alchemy.Potion internal) Checks if the potion has instant effects.
-
Constructor Details
-
ExpandPotion
public ExpandPotion()
-
-
Method Details
-
getRegistryName
public static net.minecraft.resources.ResourceLocation getRegistryName(net.minecraft.world.item.alchemy.Potion internal) Gets the registry name of the potion.- Returns:
- The registry name.
-
getName
Gets the name of the potion.- Parameters:
prefix- The prefix.potion- The potion.- Returns:
- The name.
-
getEffects
public static List<net.minecraft.world.effect.MobEffectInstance> getEffects(net.minecraft.world.item.alchemy.Potion internal) Gets the effects of the potion.- Returns:
- The effects.
-
hasInstantEffects
public static boolean hasInstantEffects(net.minecraft.world.item.alchemy.Potion internal) Checks if the potion has instant effects.- Returns:
- True if the potion has instant effects, false otherwise.
-
getCommandString
Gets the command string of the potion.- Returns:
- The command string.
-