Package etithespirit.orimod.registry
Class PotionRegistry
java.lang.Object
etithespirit.orimod.registry.PotionRegistry
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.effect.MobEffect
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
Returns the ID of the given custom potion, or null if it is not a custom potion as defined here.static void
-
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()
-