java.lang.Object
com.blamejared.crafttweaker.natives.item.alchemy.ExpandPotion

@ZenRegister public class ExpandPotion extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    getCommandString(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 String
    getName(String prefix, net.minecraft.world.item.alchemy.Potion potion)
    Gets the name of the potion.
    static net.minecraft.resources.ResourceLocation
    getRegistryName(net.minecraft.world.item.alchemy.Potion internal)
    Gets the registry name of the potion.
    static boolean
    hasInstantEffects(net.minecraft.world.item.alchemy.Potion internal)
    Checks if the potion has instant effects.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static String getName(String prefix, net.minecraft.world.item.alchemy.Potion potion)
      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

      public static String getCommandString(net.minecraft.world.item.alchemy.Potion internal)
      Gets the command string of the potion.
      Returns:
      The command string.