Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.doggie.raremetalsrevised.init;
- import com.doggie.raremetalsrevised.RareMetalsRevised;
- import com.doggie.raremetalsrevised.enchantments.CustomEnchantmentType;
- import com.doggie.raremetalsrevised.enchantments.SmelterEnchantment;
- import net.minecraft.enchantment.Enchantment;
- import net.minecraft.enchantment.EnchantmentType;
- import net.minecraft.inventory.EquipmentSlotType;
- import net.minecraft.item.Rarity;
- import net.minecraftforge.fml.RegistryObject;
- import net.minecraftforge.registries.DeferredRegister;
- import net.minecraftforge.registries.ForgeRegistries;
- public class EnchantmentInit {
- public static final DeferredRegister<Enchantment> ENCHANTMENTS = new DeferredRegister<>(
- ForgeRegistries.ENCHANTMENTS, RareMetalsRevised.MOD_ID);
- public static final RegistryObject<Enchantment> SMELTER = ENCHANTMENTS.register("smelter",
- () -> new SmelterEnchantment(Enchantment.Rarity.COMMON, CustomEnchantmentType.PICKAXE,
- new EquipmentSlotType[] { EquipmentSlotType.MAINHAND }));
- }
Advertisement
Add Comment
Please, Sign In to add comment