Game_Spriter

RunicTechnology.java

Oct 30th, 2020
789
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.gamespriter.runictechnology;
  2.  
  3. import com.gamespriter.runictechnology.util.RegistryHandler;
  4. import com.gamespriter.runictechnology.world.gen.EventHandler;
  5. import net.minecraft.item.ItemGroup;
  6. import net.minecraft.item.ItemStack;
  7. import net.minecraftforge.common.MinecraftForge;
  8. import net.minecraftforge.eventbus.api.EventPriority;
  9. import net.minecraftforge.fml.common.Mod;
  10. import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
  11. import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
  12. import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
  13. import org.apache.logging.log4j.LogManager;
  14. import org.apache.logging.log4j.Logger;
  15.  
  16. //TODO: Notes here about Creative Commons and such
  17.  
  18. @Mod("runictech")
  19. public class RunicTechnology
  20. {
  21.     private static final Logger LOGGER = LogManager.getLogger();
  22.     public static final String MOD_ID = "runictech";
  23.  
  24.     public RunicTechnology() {
  25.         MinecraftForge.EVENT_BUS.addListener(this::setup);
  26.         MinecraftForge.EVENT_BUS.addListener(this::doClientStuff);
  27.         MinecraftForge.EVENT_BUS.addListener(EventPriority.HIGH, EventHandler::biomeLoad);
  28.        
  29.         RegistryHandler.init();
  30.  
  31.         MinecraftForge.EVENT_BUS.register(this);
  32.     }
  33.  
  34.     private void setup(final FMLCommonSetupEvent event) {
  35.         event.enqueueWork(() -> EventHandler.registerConfiguredFeatures(event));
  36.     }
  37.  
  38.     private void doClientStuff(final FMLClientSetupEvent event) {
  39.    
  40.     }
  41.    
  42.     public static final ItemGroup TAB = new ItemGroup("runicTab") {
  43.        
  44.         @Override
  45.         public ItemStack createIcon() {
  46.             return new ItemStack(RegistryHandler.TAMMETHYST.get());
  47.         }
  48.     };
  49. }
  50.  
RAW Paste Data