Advertisement
Guest User

ItemInit

a guest
Sep 24th, 2021
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.11 KB | None | 0 0
  1. package com.glado.legomod.core.init;
  2.  
  3. import com.glado.legomod.LegoMod;
  4. import com.glado.legomod.core.itemgroup.LegoModItemGroup;
  5.  
  6. import net.minecraft.item.Item;
  7. import net.minecraftforge.fml.RegistryObject;
  8. import net.minecraftforge.registries.DeferredRegister;
  9. import net.minecraftforge.registries.ForgeRegistries;
  10.  
  11. public class ItemInit {
  12.    
  13.    
  14.    
  15.     public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, LegoMod.MOD_ID);
  16.  
  17.     public static final RegistryObject<Item> LEGO = ITEMS.register("lego", () -> new Item(new Item.Properties().group(LegoModItemGroup.LEGO_MOD)));
  18.     public static final RegistryObject<Item> RAW_PLASTIC = ITEMS.register("raw_plastic", () -> new Item(new Item.Properties().group(LegoModItemGroup.LEGO_MOD)));
  19.     public static final RegistryObject<Item> SUPER_GLUE = ITEMS.register("super_glue", () -> new Item(new Item.Properties().group(LegoModItemGroup.LEGO_MOD)));
  20.     public static final RegistryObject<Item> LEGO_MOLD = ITEMS.register("lego_mold", () -> new Item(new Item.Properties().group(LegoModItemGroup.LEGO_MOD).maxStackSize(1)));
  21.              
  22.    
  23.    
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement