package info.u_team.u_team_test.init;

import info.u_team.u_team_test.TestMod;
import info.u_team.u_team_test.potion.RadiationPotion;
import net.minecraft.potion.Potion;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus;
import net.minecraftforge.registries.*;

@EventBusSubscriber(modid = TestMod.MODID, bus = Bus.MOD)
public class TestPotions {
	
	public static final DeferredRegister<Potion> POTIONS = DeferredRegister.create(ForgeRegistries.POTION_TYPES, TestMod.MODID);
	
	public static final Potion RADIATION = new RadiationPotion("radiation", 1200, 0);
	public static final Potion RADIATION_LONG = new RadiationPotion("radiation_long", 2400, 1);
	public static final Potion RADIATION_EXTREME = new RadiationPotion("radiation_extreme", 1200, 2);
	
	public static void register(IEventBus bus) {
		POTIONS.register(bus);
	}
	
}

@@ -209,24 +209,70 @@
 .IEventBus;%0A
+import net.minecraftforge.fml.RegistryObject;%0A
 import net.m
@@ -320,16 +320,16 @@
 criber;%0A
-
 import n
@@ -654,38 +654,54 @@
 ic static final 
+RegistryObject%3C
 Potion
+%3E
  RADIATION = new
@@ -696,16 +696,52 @@
 IATION =
+ POTIONS.register(%22radiation%22, () -%3E
  new Rad
@@ -757,29 +757,16 @@
 ion(
-%22radiation%22, 
 1200, 0)
 ;%0A%09p
@@ -761,16 +761,17 @@
 1200, 0)
+)
 ;%0A%09publi
@@ -777,38 +777,54 @@
 ic static final 
+RegistryObject%3C
 Potion
+%3E
  RADIATION_LONG 
@@ -824,16 +824,52 @@
 N_LONG =
+ POTIONS.register(%22radiation%22, () -%3E
  new Rad
@@ -885,34 +885,16 @@
 ion(
-%22radiation_long%22, 
 2400, 1)
 ;%0A%09p
@@ -889,16 +889,17 @@
 2400, 1)
+)
 ;%0A%09publi
@@ -913,22 +913,38 @@
 c final 
+RegistryObject%3C
 Potion
+%3E
  RADIATI
@@ -960,57 +960,72 @@
 E = 
-new RadiationPotion(%22radiation_extreme%22, 
+POTIONS.register(%22radiation%22, () -%3E new RadiationPotion(
 1200, 2)
 ;%0A%09%0A
@@ -1020,16 +1020,17 @@
 1200, 2)
+)
 ;%0A%09%0A%09pub

Use the deferred register now for potions