package info.u_team.u_team_test.init;

import info.u_team.u_team_test.TestMod;
import info.u_team.u_team_test.enchantment.AutoSmeltEnchantment;
import net.minecraft.enchantment.Enchantment;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.*;

public class TestEnchantments {
	
	public static final DeferredRegister<Enchantment> ENCHANTMENTS = DeferredRegister.create(ForgeRegistries.ENCHANTMENTS, TestMod.MODID);
	
	public static final RegistryObject<Enchantment> AUTO_SMELT = ENCHANTMENTS.register("auto_smelt", () -> new AutoSmeltEnchantment("auto_smelt"));
	
	public static void register(IEventBus bus) {
		ENCHANTMENTS.register(bus);
	}
	
}

@@ -593,18 +593,8 @@
 lt%22,
- () -%3E new
  Aut
@@ -614,22 +614,13 @@
 ment
-(%22auto_smelt%22)
+::new
 );%0A%09

Use a method ctor reference now for the autosmelt enchantment