Class PotionRegistry

java.lang.Object
etithespirit.orimod.registry.PotionRegistry

public final class PotionRegistry extends Object
Registers my potions to the game. You don't know what you ask for traveler, my strongest potions could kill a dragon, let alone a man.
Author:
Eti
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.effect.MobEffect
    get(Class<? extends net.minecraft.world.effect.MobEffect> clazz)
     
    static net.minecraft.world.effect.MobEffect
    get(net.minecraft.resources.ResourceLocation rsrc)
    Returns the actual effect associated with the given ID.
    static net.minecraft.resources.ResourceLocation
    getId(Class<? extends net.minecraft.world.effect.MobEffect> clazz)
    Returns the ID of the given custom potion, or null if it is not a custom potion as defined here.
    static void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PotionRegistry

      public PotionRegistry()
  • Method Details

    • get

      public static net.minecraft.world.effect.MobEffect get(Class<? extends net.minecraft.world.effect.MobEffect> clazz)
    • getId

      public static net.minecraft.resources.ResourceLocation getId(Class<? extends net.minecraft.world.effect.MobEffect> clazz)
      Returns the ID of the given custom potion, or null if it is not a custom potion as defined here.
      Parameters:
      clazz - The class of the potion.
      Returns:
      The ID of the potion in the registry, or null if it is not from this registry.
    • get

      public static net.minecraft.world.effect.MobEffect get(net.minecraft.resources.ResourceLocation rsrc)
      Returns the actual effect associated with the given ID.
      Parameters:
      rsrc - The ID
      Returns:
      The actual effect, or null if the ID is not from this registry.
    • registerAll

      public static void registerAll()