Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- org.gudenau.storage.Storage{
- package org.gudenau.storage;
- import java.io.File;
- import java.io.IOException;
- import java.util.logging.Logger;
- import org.gudenau.common.Common;
- import org.gudenau.common.model.ObjModel;
- import org.gudenau.storage.block.Shelf;
- import org.gudenau.storage.item.ShelfItem;
- import org.gudenau.storage.render.BookShelfRenderer;
- import org.gudenau.storage.tile.BookShelfTile;
- import net.minecraft.block.Block;
- import net.minecraftforge.client.MinecraftForgeClient;
- import net.minecraftforge.common.Configuration;
- import cpw.mods.fml.client.registry.ClientRegistry;
- import cpw.mods.fml.common.Mod;
- import cpw.mods.fml.common.Mod.Init;
- import cpw.mods.fml.common.event.FMLInitializationEvent;
- import cpw.mods.fml.common.network.NetworkMod;
- import cpw.mods.fml.common.registry.GameRegistry;
- @Mod(modid = "gudStorage", name="gudenau Storage", dependencies="after:gudCommon")
- @NetworkMod
- public class Storage {
- private Configuration config;
- private static ShelfItem shelfItem;
- private static Shelf shelf;
- private Logger logger = Common.instance.getLogger("gudStorage");
- @Init
- public void init(FMLInitializationEvent event){
- log("gudStorage is loading...");
- config = new Configuration(new File("config/gudenau/Shelf.cfg"));
- config.load();
- createBlocks();
- createItems();
- registerTiles();
- config.save();
- log("gudStorage has loaded!");
- }
- private void createBlocks(){
- shelf = new Shelf(config.getBlock("shelf", 500).getInt());
- GameRegistry.registerBlock(shelf);
- }
- private void registerTiles(){
- GameRegistry.registerTileEntity(BookShelfTile.class, "gudBookShelfTile");
- ClientRegistry.bindTileEntitySpecialRenderer(BookShelfTile.class, new BookShelfRenderer());
- }
- private void createItems(){
- shelfItem = new ShelfItem(config.getItem("shelf", 20012).getInt());
- }
- public static ShelfItem getShelfItem() {
- return shelfItem;
- }
- public void log(String log){
- logger.info(log);
- }
- public void warn(String warrning){
- logger.warning(warrning);
- }
- public void error(String error){
- logger.severe(error);
- }
- }
- }
- org.gudenau.common.Common{
- package org.gudenau.common;
- import java.util.logging.Logger;
- import cpw.mods.fml.common.FMLLog;
- import cpw.mods.fml.common.Mod;
- import cpw.mods.fml.common.Mod.Init;
- import cpw.mods.fml.common.Mod.Instance;
- import cpw.mods.fml.common.Mod.PreInit;
- import cpw.mods.fml.common.event.FMLInitializationEvent;
- import cpw.mods.fml.common.event.FMLPreInitializationEvent;
- @Mod(modid = "gudCommon")
- public class Common {
- private Logger gudLogger;
- @Instance(value = "gudCommon")
- public static Common instance;
- @PreInit
- public void preload(FMLPreInitializationEvent event){
- instance = this;
- System.out.println("\n\n\n\n\n\n\n\n\n");
- gudLogger = Logger.getLogger("gudCommon");
- gudLogger.setParent(FMLLog.getLogger());
- }
- @Init
- public void load(FMLInitializationEvent event) {
- log("gudCommon is loading...");
- log("gudCommon has loaded!");
- }
- public void log(String log) {
- gudLogger.info(log);
- }
- public void warn(String warrning) {
- gudLogger.warning(warrning);
- }
- public void error(String error) {
- gudLogger.severe(error);
- }
- public Logger getLogger(String logger) {
- log("Creating logger " + logger + " from gudLogger");
- Logger tmp = Logger.getLogger(logger);
- tmp.setParent(FMLLog.getLogger());
- return tmp;
- }
- }
- }
- Log{
- 2013-03-31 09:40:52 [INFO] [ForgeModLoader] Forge Mod Loader version 5.1.10.620 for Minecraft 1.5.1 loading
- 2013-03-31 09:40:52 [INFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_17, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7
- 2013-03-31 09:40:52 [INFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
- 2013-03-31 09:40:54 [INFO] [STDOUT] 229 recipes
- 2013-03-31 09:40:54 [INFO] [STDOUT] 27 achievements
- 2013-03-31 09:40:54 [INFO] [Minecraft-Client] Setting user: Player128
- 2013-03-31 09:40:54 [INFO] [STDOUT] (Session ID is -)
- 2013-03-31 09:40:54 [INFO] [STDERR] Client asked for parameter: server
- 2013-03-31 09:40:54 [INFO] [Minecraft-Client] LWJGL Version: 2.4.2
- 2013-03-31 09:40:54 [INFO] [MinecraftForge] Attempting early MinecraftForge initialization
- 2013-03-31 09:40:54 [INFO] [STDOUT] MinecraftForge v7.7.1.620 Initialized
- 2013-03-31 09:40:54 [INFO] [ForgeModLoader] MinecraftForge v7.7.1.620 Initialized
- 2013-03-31 09:40:54 [INFO] [STDOUT] Replaced 85 ore recipies
- 2013-03-31 09:40:54 [INFO] [MinecraftForge] Completed early MinecraftForge initialization
- 2013-03-31 09:40:54 [INFO] [ForgeModLoader] Reading custom logging properties from C:\Users\Alec\Desktop\mcp\jars\config\logging.properties
- 2013-03-31 09:40:54 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
- 2013-03-31 09:40:55 [INFO] [ForgeModLoader] Searching C:\Users\Alec\Desktop\mcp\jars\mods for mods
- 2013-03-31 09:40:55 [INFO] [gudCommon] Mod gudCommon is missing the required element 'name'. Substituting gudCommon
- 2013-03-31 09:40:55 [WARNING] [gudCommon] Mod gudCommon is missing the required element 'version' and no fallback can be found. Substituting '1.0'.
- 2013-03-31 09:40:55 [WARNING] [gudStorage] Mod gudStorage is missing the required element 'version' and no fallback can be found. Substituting '1.0'.
- 2013-03-31 09:40:55 [INFO] [ForgeModLoader] Forge Mod Loader has identified 7 mods to load
- 2013-03-31 09:40:55 [INFO] [mcp] Activating mod mcp
- 2013-03-31 09:40:55 [INFO] [FML] Activating mod FML
- 2013-03-31 09:40:55 [INFO] [Forge] Activating mod Forge
- 2013-03-31 09:40:55 [INFO] [gudCommon] Activating mod gudCommon
- 2013-03-31 09:40:55 [INFO] [gudStorage] Activating mod gudStorage
- 2013-03-31 09:40:55 [INFO] [CCTurtle] Activating mod CCTurtle
- 2013-03-31 09:40:55 [INFO] [ComputerCraft] Activating mod ComputerCraft
- 2013-03-31 09:40:56 [SEVERE] [ForgeModLoader] Fatal errors were detected during the transition from CONSTRUCTING to PREINITIALIZATION. Loading cannot continue
- 2013-03-31 09:40:56 [SEVERE] [ForgeModLoader]
- mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed
- FML [Forge Mod Loader] (coremods) Unloaded->Constructed
- Forge [Minecraft Forge] (coremods) Unloaded->Constructed
- gudCommon [gudCommon] (bin) Unloaded->Constructed
- gudStorage [gudenau Storage] (bin) Unloaded->Errored
- ComputerCraft [ComputerCraft] (ComputerCraft1.52.zip) Unloaded->Constructed
- CCTurtle [ComputerCraft Turtles] (ComputerCraft1.52.zip) Unloaded->Constructed
- 2013-03-31 09:40:56 [SEVERE] [ForgeModLoader] The following problems were captured during this phase
- 2013-03-31 09:40:56 [SEVERE] [ForgeModLoader] Caught exception from gudStorage
- java.lang.NullPointerException
- at org.gudenau.common.Common.log(Common.java:40)
- at org.gudenau.common.Common.getLogger(Common.java:52)
- at org.gudenau.storage.Storage.<init>(Storage.java:34)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
- at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
- at java.lang.reflect.Constructor.newInstance(Unknown Source)
- at java.lang.Class.newInstance0(Unknown Source)
- at java.lang.Class.newInstance(Unknown Source)
- at cpw.mods.fml.common.FMLModContainer$JavaAdapter.getNewInstance(FMLModContainer.java:129)
- at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:487)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
- at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
- at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
- at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
- at com.google.common.eventbus.EventBus.post(EventBus.java:267)
- at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
- at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
- at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
- at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
- at com.google.common.eventbus.EventBus.post(EventBus.java:267)
- at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
- at cpw.mods.fml.common.Loader.loadMods(Loader.java:502)
- at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160)
- at net.minecraft.client.Minecraft.startGame(Minecraft.java:407)
- at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
- at net.minecraft.client.Minecraft.run(Minecraft.java:729)
- at java.lang.Thread.run(Unknown Source)
- 2013-03-31 09:40:56 [INFO] [STDERR] java.lang.NullPointerException
- 2013-03-31 09:40:56 [INFO] [STDERR] at org.gudenau.common.Common.log(Common.java:40)
- 2013-03-31 09:40:56 [INFO] [STDERR] at org.gudenau.common.Common.getLogger(Common.java:52)
- 2013-03-31 09:40:56 [INFO] [STDERR] at org.gudenau.storage.Storage.<init>(Storage.java:34)
- 2013-03-31 09:40:56 [INFO] [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- 2013-03-31 09:40:56 [INFO] [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
- 2013-03-31 09:40:56 [INFO] [STDERR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
- 2013-03-31 09:40:56 [INFO] [STDERR] at java.lang.reflect.Constructor.newInstance(Unknown Source)
- 2013-03-31 09:40:56 [INFO] [STDERR] at java.lang.Class.newInstance0(Unknown Source)
- 2013-03-31 09:40:56 [INFO] [STDERR] at java.lang.Class.newInstance(Unknown Source)
- 2013-03-31 09:40:56 [INFO] [STDERR] at cpw.mods.fml.common.FMLModContainer$JavaAdapter.getNewInstance(FMLModContainer.java:129)
- 2013-03-31 09:40:56 [INFO] [STDERR] at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:487)
- 2013-03-31 09:40:56 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- 2013-03-31 09:40:56 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- 2013-03-31 09:40:56 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- 2013-03-31 09:40:56 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
- 2013-03-31 09:40:56 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
- 2013-03-31 09:40:56 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
- 2013-03-31 09:40:56 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
- 2013-03-31 09:40:56 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
- 2013-03-31 09:40:56 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
- 2013-03-31 09:40:56 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
- 2013-03-31 09:40:56 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- 2013-03-31 09:40:56 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- 2013-03-31 09:40:56 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- 2013-03-31 09:40:56 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
- 2013-03-31 09:40:56 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
- 2013-03-31 09:40:56 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
- 2013-03-31 09:40:56 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
- 2013-03-31 09:40:56 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
- 2013-03-31 09:40:56 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
- 2013-03-31 09:40:56 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
- 2013-03-31 09:40:56 [INFO] [STDERR] at cpw.mods.fml.common.Loader.loadMods(Loader.java:502)
- 2013-03-31 09:40:56 [INFO] [STDERR] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160)
- 2013-03-31 09:40:56 [INFO] [STDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:407)
- 2013-03-31 09:40:56 [INFO] [STDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
- 2013-03-31 09:40:56 [INFO] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:729)
- 2013-03-31 09:40:56 [INFO] [STDERR] at java.lang.Thread.run(Unknown Source)
- 2013-03-31 09:41:05 [INFO] [STDERR] Someone is closing me!
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement