TheOnlyTails

ArmorRegistry

Sep 11th, 2020
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. public class ArmorRegistry {
  2. public static final DeferredRegister<Item> ITEMS =
  3. DeferredRegister.create(ForgeRegistries.ITEMS, TheOnlyTails.MOD_ID);
  4.  
  5. public static final RegistryObject<ArmorItem> RUBY_HELMET =
  6. ItemsRegistry.ITEMS.register("ruby_helmet",
  7. () -> new RubyArmorItem(EquipmentSlotType.HEAD));
  8.  
  9. public static final RegistryObject<ArmorItem> RUBY_CHESTPLATE =
  10. ItemsRegistry.ITEMS.register("ruby_chestplate",
  11. () -> new RubyArmorItem(EquipmentSlotType.CHEST));
  12.  
  13. public static final RegistryObject<ArmorItem> RUBY_LEGGINGS =
  14. ItemsRegistry.ITEMS.register("ruby_leggings",
  15. () -> new RubyArmorItem(EquipmentSlotType.LEGS));
  16.  
  17. public static final RegistryObject<ArmorItem> RUBY_BOOTS =
  18. ItemsRegistry.ITEMS.register("ruby_boots",
  19. () -> new RubyArmorItem(EquipmentSlotType.FEET));
  20.  
  21. public static void init() {
  22. ITEMS.register(FMLJavaModLoadingContext.get().getModEventBus());
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment