Guest User

Untitled

a guest
Jul 19th, 2017
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. package net.zackeezy.tutorial.item;
  2.  
  3. import net.minecraft.item.Item;
  4. import net.minecraftforge.fml.common.registry.GameRegistry;
  5.  
  6. public class ModItems {
  7.  
  8. public static void init() {
  9. }
  10.  
  11. private static <T extends Item> T register(T item) {
  12. GameRegistry.register(item);
  13.  
  14. if (item instanceof ItemBase) {
  15. ((ItemBase)item).registerItemModel();
  16. }
  17.  
  18. return item;
  19. }
  20.  
  21. }
Add Comment
Please, Sign In to add comment