kamrantekkit

registration

Jan 19th, 2021 (edited)
792
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Registration {
  2.     public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, weebfood.MOD_ID);
  3.  
  4.     public static void register() {
  5.         IEventBus modEventbus = FMLJavaModLoadingContext.get().getModEventBus();
  6.         ITEMS.register(modEventbus);
  7.  
  8.         modItems.register();
  9.     }
  10. }
  11.  
  12. public class modItems {
  13.     public static final RegistryObject<Item> thighken = Registration.ITEMS.register("thighken", () -> new Item(new Item.Properties().group(ItemGroup.FOOD).maxStackSize(64).food(modFoods.THIGHKEN)));
  14.  
  15.     static void register() {}
  16.  
  17. }
RAW Paste Data