Guest User

EchantmentInit.Java

a guest
Jun 15th, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. package com.doggie.raremetalsrevised.init;
  2.  
  3. import com.doggie.raremetalsrevised.RareMetalsRevised;
  4. import com.doggie.raremetalsrevised.enchantments.CustomEnchantmentType;
  5. import com.doggie.raremetalsrevised.enchantments.SmelterEnchantment;
  6. import net.minecraft.enchantment.Enchantment;
  7. import net.minecraft.enchantment.EnchantmentType;
  8. import net.minecraft.inventory.EquipmentSlotType;
  9. import net.minecraft.item.Rarity;
  10. import net.minecraftforge.fml.RegistryObject;
  11. import net.minecraftforge.registries.DeferredRegister;
  12. import net.minecraftforge.registries.ForgeRegistries;
  13.  
  14. public class EnchantmentInit {
  15.  
  16. public static final DeferredRegister<Enchantment> ENCHANTMENTS = new DeferredRegister<>(
  17. ForgeRegistries.ENCHANTMENTS, RareMetalsRevised.MOD_ID);
  18.  
  19. public static final RegistryObject<Enchantment> SMELTER = ENCHANTMENTS.register("smelter",
  20. () -> new SmelterEnchantment(Enchantment.Rarity.COMMON, CustomEnchantmentType.PICKAXE,
  21. new EquipmentSlotType[] { EquipmentSlotType.MAINHAND }));
  22.  
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment