package info.u_team.u_team_test.init;

import info.u_team.u_team_test.TestMod;
import info.u_team.u_team_test.effect.RadiationEffect;
import info.u_team.u_team_test.global_loot_modifier.AutoSmeltLootModifier;
import net.minecraft.potion.Effect;
import net.minecraftforge.common.loot.GlobalLootModifierSerializer;
import net.minecraftforge.event.RegistryEvent.Register;
import net.minecraftforge.eventbus.api.*;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus;
import net.minecraftforge.registries.*;

public class TestGlobalLootModifiers {
	
	public static final DeferredRegister<GlobalLootModifierSerializer<?>> GLOBAL_LOOT_MODIFIER_SERIALIZERS = DeferredRegister.create(ForgeRegistries.LOOT_MODIFIER_SERIALIZERS, TestMod.MODID);
	
	public static final RegistryObject<AutoSmeltLootModifier.Serializer> AUTO_SMELT = GLOBAL_LOOT_MODIFIER_SERIALIZERS.register("auto_smelt", AutoSmeltLootModifier.Serializer::new);	
	
	public static void register(IEventBus bus) {
		GLOBAL_LOOT_MODIFIER_SERIALIZERS.register(bus);
	}
//	
//	@SubscribeEvent
//	public static void register(Register<GlobalLootModifierSerializer<?>> event) {
//		event.getRegistry().register(new AutoSmeltLootModifier.Serializer().setRegistryName(TestMod.MODID, "auto_smelt"));
//	}
	
}

@@ -1134,237 +1134,8 @@
 %0A%09%7D%0A
-//%09%0A//%09@SubscribeEvent%0A//%09public static void register(Register%3CGlobalLootModifierSerializer%3C?%3E%3E event) %7B%0A//%09%09event.getRegistry().register(new AutoSmeltLootModifier.Serializer().setRegistryName(TestMod.MODID, %22auto_smelt%22));%0A//%09%7D%0A
 %09%0A%7D%0A

Remove old code