Jump to content

[1.7.10]Null pointer when adding items to a list! SOLVED


jackmano

Recommended Posts

I have a tile that tests for an item in a chest, and I have a list of items to check for. But when I add them like so:

crystaltypes.add(1, Items.blaze_powder);
resultcrystals.add(1, Items.blaze_rod);

it crashes! It only crashes when I load a world, I can get the the main menu.

Crash Log

 

 

[10:25:44] [main/INFO] [GradleStart]: Extra: []
[10:25:44] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/machi_000/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[10:25:44] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[10:25:44] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[10:25:44] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[10:25:44] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[10:25:44] [main/INFO] [FML]: Forge Mod Loader version 7.99.16.1448 for Minecraft 1.7.10 loading
[10:25:44] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_45, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jre1.8.0_45
[10:25:44] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[10:25:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[10:25:44] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
[10:25:44] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[10:25:44] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[10:25:44] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[10:25:44] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[10:25:44] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[10:25:44] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[10:25:44] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[10:25:45] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[10:25:49] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[10:25:49] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[10:25:49] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[10:25:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[10:25:50] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
[10:25:50] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
[10:25:50] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[10:25:52] [main/INFO]: Setting user: Player485
[10:25:56] [Client thread/INFO]: LWJGL Version: 2.9.1
[10:25:58] [Client thread/INFO] [sTDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: ---- Minecraft Crash Report ----
// Everything's going to plan. No, really, that was supposed to happen.

Time: 11/5/15 10:25 AM
Description: Loading screen debug info

This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.8.0_45, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 769913416 bytes (734 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: 
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.3.12682 Compatibility Profile Context 13.302.1601.0' Renderer: 'AMD Radeon(TM) R3 Graphics'
[10:25:59] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[10:25:59] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1448 Initialized
[10:25:59] [Client thread/INFO] [FML]: Replaced 183 ore recipies
[10:25:59] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[10:26:00] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[10:26:00] [Client thread/INFO] [FML]: Searching C:\Users\machi_000\Documents\Minecraft Development\syntheticgems\eclipse\mods for mods
[10:26:00] [Client thread/INFO] [syntheticgems]: Mod syntheticgems is missing the required element 'name'. Substituting syntheticgems
[10:26:08] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[10:26:08] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, syntheticgems] at CLIENT
[10:26:08] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, syntheticgems] at SERVER
[10:26:10] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:syntheticgems
[10:26:10] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[10:26:10] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
[10:26:10] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[10:26:10] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[10:26:10] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[10:26:10] [Client thread/INFO] [FML]: Applying holder lookups
[10:26:10] [Client thread/INFO] [FML]: Holder lookups applied
[10:26:10] [Client thread/INFO] [FML]: Injecting itemstacks
[10:26:10] [Client thread/INFO] [FML]: Itemstack injection complete
[10:26:11] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[10:26:11] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
[10:26:11] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[10:26:11] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[10:26:12] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[10:26:12] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[10:26:12] [sound Library Loader/INFO]: Sound engine started
[10:26:15] [Client thread/WARN]: Invalid sounds.json
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated array at line 6 column 8
at com.google.gson.internal.Streams.parse(Streams.java:56) ~[streams.class:?]
at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]
at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40) ~[TypeAdapterRuntimeTypeWrapper.class:?]
at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:187) ~[MapTypeAdapterFactory$Adapter.class:?]
at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:145) ~[MapTypeAdapterFactory$Adapter.class:?]
at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]
at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?]
at net.minecraft.client.audio.SoundHandler.onResourceManagerReload(SoundHandler.java:84) [soundHandler.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:130) [simpleReloadableResourceManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:528) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:942) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
at GradleStart.main(Unknown Source) [start/:?]
Caused by: com.google.gson.stream.MalformedJsonException: Unterminated array at line 6 column 8
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?]
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:465) ~[JsonReader.class:?]
at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[JsonReader.class:?]
at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:658) ~[TypeAdapters$25.class:?]
at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[TypeAdapters$25.class:?]
at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?]
at com.google.gson.internal.Streams.parse(Streams.java:44) ~[streams.class:?]
... 19 more
[10:26:18] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[10:26:19] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[10:26:19] [Client thread/INFO] [sTDOUT]: [com.rabidfox.syntheticgems.SyntheticGems:init:129]: Successfully Registered World Generator
[10:26:19] [Client thread/INFO] [FML]: Injecting itemstacks
[10:26:19] [Client thread/INFO] [FML]: Itemstack injection complete
[10:26:20] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[10:26:20] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:syntheticgems
[10:26:21] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[10:26:21] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[10:26:21] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[10:26:21] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...
[10:26:22] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
[10:26:22] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[10:26:22] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[10:26:22] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
[10:26:22] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[10:26:22] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[10:26:22] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[10:26:22] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[10:26:22] [sound Library Loader/INFO]: Sound engine started
[10:26:25] [Client thread/WARN]: Invalid sounds.json
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated array at line 6 column 8
at com.google.gson.internal.Streams.parse(Streams.java:56) ~[streams.class:?]
at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]
at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40) ~[TypeAdapterRuntimeTypeWrapper.class:?]
at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:187) ~[MapTypeAdapterFactory$Adapter.class:?]
at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:145) ~[MapTypeAdapterFactory$Adapter.class:?]
at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]
at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?]
at net.minecraft.client.audio.SoundHandler.onResourceManagerReload(SoundHandler.java:84) [soundHandler.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:143) [simpleReloadableResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:121) [simpleReloadableResourceManager.class:?]
at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:654) [Minecraft.class:?]
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:327) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:597) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:942) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
at GradleStart.main(Unknown Source) [start/:?]
Caused by: com.google.gson.stream.MalformedJsonException: Unterminated array at line 6 column 8
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?]
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:465) ~[JsonReader.class:?]
at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[JsonReader.class:?]
at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:658) ~[TypeAdapters$25.class:?]
at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[TypeAdapters$25.class:?]
at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?]
at com.google.gson.internal.Streams.parse(Streams.java:44) ~[streams.class:?]
... 22 more
[10:26:33] [server thread/INFO]: Starting integrated minecraft server version 1.7.10
[10:26:33] [server thread/INFO]: Generating keypair
[10:26:33] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[10:26:33] [server thread/INFO] [FML]: Applying holder lookups
[10:26:33] [server thread/INFO] [FML]: Holder lookups applied
[10:26:34] [server thread/INFO] [FML]: Loading dimension 0 (Test) (net.minecraft.server.integrated.IntegratedServer@53ec5dd3)
[10:26:34] [server thread/INFO] [FML]: Loading dimension 1 (Test) (net.minecraft.server.integrated.IntegratedServer@53ec5dd3)
[10:26:34] [server thread/INFO] [FML]: Loading dimension -1 (Test) (net.minecraft.server.integrated.IntegratedServer@53ec5dd3)
[10:26:34] [server thread/INFO]: Preparing start region for level 0
[10:26:35] [server thread/INFO]: Preparing spawn area: 3%
[10:26:36] [server thread/INFO]: Preparing spawn area: 40%
[10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: java.lang.NullPointerException
[10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at com.rabidfox.syntheticgems.TileHydroTorch.<init>(TileHydroTorch.java:23)
[10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
[10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
[10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at java.lang.reflect.Constructor.newInstance(Unknown Source)
[10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at java.lang.Class.newInstance(Unknown Source)
[10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.tileentity.TileEntity.createAndLoadEntity(TileEntity.java:123)
[10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.world.chunk.storage.AnvilChunkLoader.loadEntities(AnvilChunkLoader.java:525)
[10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraftforge.common.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:41)
[10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraftforge.common.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:12)
[10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraftforge.common.util.AsynchronousExecutor.skipQueue(AsynchronousExecutor.java:344)
[10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraftforge.common.util.AsynchronousExecutor.getSkipQueue(AsynchronousExecutor.java:302)
[10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraftforge.common.chunkio.ChunkIOExecutor.syncChunkLoad(ChunkIOExecutor.java:12)
[10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:144)
[10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:119)
[10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:305)
[10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:79)
[10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96)
[10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445)
[10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)
[10:26:36] [server thread/WARN]: Skipping BlockEntity with id tilehydrotorch
[10:26:37] [server thread/INFO]: Changing view distance to 12, from 10
[10:26:38] [Netty Client IO #0/INFO] [FML]: Server protocol version 2
[10:26:38] [Netty IO #1/INFO] [FML]: Client protocol version 2
[10:26:38] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]
[10:26:38] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
[10:26:38] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
[10:26:39] [server thread/INFO] [FML]: [server thread] Server side modded connection established
[10:26:39] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
[10:26:39] [server thread/INFO]: Player485[local:E:25823ee6] logged in with entity id 186 at (-242.5156805705788, 4.0, 440.0834589374958)
[10:26:39] [server thread/INFO]: Player485 joined the game
[10:26:42] [server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2341ms behind, skipping 46 tick(s)
[10:26:43] [Client thread/WARN]: Failed to load texture: syntheticgems:textures/blocks/tesrhydrotorch.png
java.io.FileNotFoundException: syntheticgems:textures/blocks/tesrhydrotorch.png
at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.SimpleTexture.loadTexture(SimpleTexture.java:35) ~[simpleTexture.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.bindTexture(TextureManager.java:45) [TextureManager.class:?]
at com.rabidfox.syntheticgems.ItemRendererHydroTorch.renderItem(ItemRendererHydroTorch.java:61) [itemRendererHydroTorch.class:?]
at net.minecraftforge.client.ForgeHooksClient.renderInventoryItem(ForgeHooksClient.java:183) [ForgeHooksClient.class:?]
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:583) [RenderItem.class:?]
at net.minecraft.client.gui.GuiIngame.renderInventorySlot(GuiIngame.java:973) [GuiIngame.class:?]
at net.minecraftforge.client.GuiIngameForge.renderHotbar(GuiIngameForge.java:209) [GuiIngameForge.class:?]
at net.minecraftforge.client.GuiIngameForge.renderGameOverlay(GuiIngameForge.java:144) [GuiIngameForge.class:?]
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1114) [EntityRenderer.class:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1067) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:962) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
at GradleStart.main(Unknown Source) [start/:?]
[10:26:45] [Client thread/FATAL]: Unreported exception thrown!
java.lang.NullPointerException
at com.rabidfox.syntheticgems.TileHydroTorch.<init>(TileHydroTorch.java:23) ~[TileHydroTorch.class:?]
at com.rabidfox.syntheticgems.BlockHydroTorch.createNewTileEntity(BlockHydroTorch.java:48) ~[blockHydroTorch.class:?]
at net.minecraft.block.Block.createTileEntity(Block.java:1775) ~[block.class:?]
at net.minecraft.world.chunk.Chunk.func_150806_e(Chunk.java:933) ~[Chunk.class:?]
at net.minecraft.world.ChunkCache.getTileEntity(ChunkCache.java:102) ~[ChunkCache.class:?]
at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:189) ~[WorldRenderer.class:?]
at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1618) ~[RenderGlobal.class:?]
at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1263) ~[EntityRenderer.class:?]
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1087) ~[EntityRenderer.class:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1067) ~[Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:962) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
at GradleStart.main(Unknown Source) [start/:?]
[10:26:45] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: ---- Minecraft Crash Report ----
// Would you like a cupcake?

Time: 11/5/15 10:26 AM
Description: Unexpected error

java.lang.NullPointerException: Unexpected error
at com.rabidfox.syntheticgems.TileHydroTorch.<init>(TileHydroTorch.java:23)
at com.rabidfox.syntheticgems.BlockHydroTorch.createNewTileEntity(BlockHydroTorch.java:48)
at net.minecraft.block.Block.createTileEntity(Block.java:1775)
at net.minecraft.world.chunk.Chunk.func_150806_e(Chunk.java:933)
at net.minecraft.world.ChunkCache.getTileEntity(ChunkCache.java:102)
at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:189)
at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1618)
at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1263)
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1087)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1067)
at net.minecraft.client.Minecraft.run(Minecraft.java:962)
at net.minecraft.client.main.Main.main(Main.java:164)
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 net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at com.rabidfox.syntheticgems.TileHydroTorch.<init>(TileHydroTorch.java:23)
at com.rabidfox.syntheticgems.BlockHydroTorch.createNewTileEntity(BlockHydroTorch.java:48)
at net.minecraft.block.Block.createTileEntity(Block.java:1775)
at net.minecraft.world.chunk.Chunk.func_150806_e(Chunk.java:933)
at net.minecraft.world.ChunkCache.getTileEntity(ChunkCache.java:102)
at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:189)
at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1618)
at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1263)

-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['Player485'/186, l='MpServer', x=-242.52, y=5.62, z=440.08]]
Chunk stats: MultiplayerChunkCache: 85, 85
Level seed: 0
Level generator: ID 01 - flat, ver 0. Features enabled: false
Level generator options: 
Level spawn location: World: (-234,4,421), Chunk: (at 6,0,5 in -15,26; contains blocks -240,0,416 to -225,255,431), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Level time: 103658 game time, 8074 day time
Level dimension: 0
Level storage version: 0x00000 - Unknown?
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
Forced entities: 61 total; [EntityChicken['Chicken'/128, l='MpServer', x=-195.41, y=4.00, z=439.44], EntityCow['Cow'/129, l='MpServer', x=-198.75, y=4.00, z=445.69], EntityChicken['Chicken'/132, l='MpServer', x=-183.72, y=4.00, z=421.03], EntityHorse['Donkey'/133, l='MpServer', x=-183.03, y=4.00, z=463.88], EntitySheep['Sheep'/134, l='MpServer', x=-180.91, y=4.00, z=488.06], EntitySheep['Sheep'/135, l='MpServer', x=-176.81, y=4.00, z=487.78], EntityPig['Pig'/142, l='MpServer', x=-170.19, y=4.00, z=396.75], EntityClientPlayerMP['Player485'/186, l='MpServer', x=-242.52, y=5.62, z=440.08], EntityCow['Cow'/31, l='MpServer', x=-311.22, y=4.00, z=373.69], EntitySheep['Sheep'/32, l='MpServer', x=-319.91, y=4.00, z=380.88], EntityCow['Cow'/33, l='MpServer', x=-311.41, y=4.00, z=378.28], EntitySheep['Sheep'/34, l='MpServer', x=-312.03, y=4.00, z=396.94], EntityChicken['Chicken'/35, l='MpServer', x=-314.53, y=4.00, z=399.56], EntitySheep['Sheep'/36, l='MpServer', x=-318.03, y=4.00, z=409.91], EntityHorse['Horse'/37, l='MpServer', x=-307.34, y=4.00, z=463.13], EntitySheep['Sheep'/38, l='MpServer', x=-311.78, y=4.00, z=448.69], EntityPig['Pig'/39, l='MpServer', x=-310.88, y=4.00, z=478.84], EntitySheep['Sheep'/40, l='MpServer', x=-314.31, y=4.00, z=464.13], EntitySheep['Sheep'/41, l='MpServer', x=-305.22, y=4.00, z=492.81], EntityChicken['Chicken'/42, l='MpServer', x=-319.44, y=4.00, z=482.31], EntityChicken['Chicken'/43, l='MpServer', x=-304.19, y=4.00, z=493.59], EntityChicken['Chicken'/44, l='MpServer', x=-306.53, y=4.00, z=502.47], EntityCow['Cow'/50, l='MpServer', x=-302.03, y=4.00, z=380.13], EntityHorse['Horse'/51, l='MpServer', x=-289.81, y=4.00, z=406.00], EntityCow['Cow'/52, l='MpServer', x=-300.75, y=4.00, z=421.59], EntitySheep['Sheep'/53, l='MpServer', x=-291.09, y=4.00, z=423.84], EntityChicken['Chicken'/54, l='MpServer', x=-301.44, y=4.00, z=448.47], EntityChicken['Chicken'/55, l='MpServer', x=-301.34, y=4.00, z=475.56], EntitySheep['Sheep'/56, l='MpServer', x=-289.25, y=4.00, z=470.63], EntityPig['Pig'/57, l='MpServer', x=-300.91, y=4.00, z=471.97], EntityChicken['Chicken'/58, l='MpServer', x=-300.38, y=4.00, z=473.59], EntityPig['Pig'/59, l='MpServer', x=-302.69, y=4.00, z=477.97], EntityPig['Pig'/66, l='MpServer', x=-278.19, y=4.00, z=399.69], EntityChicken['Chicken'/67, l='MpServer', x=-286.59, y=4.00, z=401.44], EntitySheep['Sheep'/68, l='MpServer', x=-285.13, y=4.00, z=421.19], EntityPig['Pig'/69, l='MpServer', x=-280.25, y=4.00, z=437.84], EntityCow['Cow'/70, l='MpServer', x=-279.97, y=4.00, z=450.06], EntityPig['Pig'/71, l='MpServer', x=-286.09, y=4.00, z=467.13], EntityHorse['Horse'/72, l='MpServer', x=-285.50, y=4.00, z=494.19], EntityChicken['Chicken'/73, l='MpServer', x=-277.34, y=4.00, z=480.41], EntityChicken['Chicken'/74, l='MpServer', x=-278.56, y=4.00, z=505.38], EntityChicken['Chicken'/75, l='MpServer', x=-279.59, y=4.00, z=501.47], EntityPig['Pig'/83, l='MpServer', x=-259.91, y=4.00, z=368.91], EntityChicken['Chicken'/84, l='MpServer', x=-271.41, y=4.00, z=399.41], EntityChicken['Chicken'/85, l='MpServer', x=-259.47, y=4.00, z=392.47], EntityHorse['Horse'/86, l='MpServer', x=-269.22, y=4.00, z=385.91], EntityCow['Cow'/87, l='MpServer', x=-265.69, y=4.00, z=414.25], EntityHorse['Horse'/88, l='MpServer', x=-259.16, y=4.00, z=466.94], EntityHorse['Horse'/89, l='MpServer', x=-263.34, y=4.00, z=483.84], EntityChicken['Chicken'/97, l='MpServer', x=-254.53, y=4.00, z=375.44], EntitySheep['Sheep'/98, l='MpServer', x=-241.94, y=4.00, z=373.91], EntityChicken['Chicken'/99, l='MpServer', x=-252.34, y=4.00, z=395.25], EntityHorse['Horse'/100, l='MpServer', x=-247.06, y=4.00, z=387.94], EntityCow['Cow'/104, l='MpServer', x=-228.50, y=4.00, z=402.31], EntityPig['Pig'/105, l='MpServer', x=-238.53, y=4.00, z=404.88], EntityItem['item.tile.workbench'/106, l='MpServer', x=-237.88, y=4.13, z=431.97], EntityItem['item.tile.monsterStoneEgg.crackedbrick'/107, l='MpServer', x=-237.53, y=4.13, z=432.50], EntityCow['Cow'/108, l='MpServer', x=-232.34, y=4.00, z=497.81], EntityChicken['Chicken'/117, l='MpServer', x=-214.59, y=4.00, z=376.56], EntitySheep['Sheep'/118, l='MpServer', x=-220.63, y=4.00, z=499.84], EntityCow['Cow'/127, l='MpServer', x=-198.28, y=4.00, z=393.22]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2566)
at net.minecraft.client.Minecraft.run(Minecraft.java:991)
at net.minecraft.client.main.Main.main(Main.java:164)
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 net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.8.0_45, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 735853056 bytes (701 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1448 4 mods loaded, 4 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCHIJAAAA	mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) 
UCHIJAAAA	FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar) 
UCHIJAAAA	Forge{10.13.4.1448} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar) 
UCHIJAAAA	syntheticgems{1.0.0} [syntheticgems] (bin) 
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.3.12682 Compatibility Profile Context 13.302.1601.0' Renderer: 'AMD Radeon(TM) R3 Graphics'
Launched Version: 1.7.10
LWJGL: 2.9.1
OpenGL: AMD Radeon(TM) R3 Graphics GL version 4.3.12682 Compatibility Profile Context 13.302.1601.0, ATI Technologies Inc.
GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported.

Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)
[10:26:45] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\machi_000\Documents\Minecraft Development\syntheticgems\eclipse\.\crash-reports\crash-2015-11-05_10.26.45-client.txt
[10:26:45] [Client Shutdown Thread/INFO]: Stopping server
[10:26:45] [Client Shutdown Thread/INFO]: Saving players
AL lib: (EE) alc_cleanup: 1 device not closed
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

 

HEEELP!!!

 

Link to comment
Share on other sites

package com.rabidfox.syntheticgems;

 

import java.util.List;

import java.util.Random;

 

import net.minecraft.init.Items;

import net.minecraft.item.Item;

import net.minecraft.nbt.NBTTagCompound;

import net.minecraft.network.NetworkManager;

import net.minecraft.network.Packet;

import net.minecraft.network.play.server.S35PacketUpdateTileEntity;

import net.minecraft.tileentity.TileEntity;

import net.minecraft.tileentity.TileEntityChest;

public class TileHydroTorch extends TileEntity {

Random rdm = new Random();

Boolean on = false;

Boolean fire = false;

Boolean ready = false;

Item returncrystal = null;

List crystaltypes;

List resultcrystals;

public TileHydroTorch(){

crystaltypes.add(1, Items.blaze_powder);

resultcrystals.add(1, Items.blaze_rod);

}

public int getFacing() {

return 0;

 

}

 

@Override

public void writeToNBT(NBTTagCompound nbt){

super.writeToNBT(nbt);

nbt.setBoolean("on", on);

nbt.setBoolean("fire", fire);

nbt.setBoolean("ready", ready);

nbt.setInteger("returncrystal", Item.getIdFromItem(returncrystal));

}

public void readFromNBT(NBTTagCompound nbt){

super.readFromNBT(nbt);

on = nbt.getBoolean("on");

fire = nbt.getBoolean("fire");

ready = nbt.getBoolean("ready");

returncrystal = Item.getItemById(nbt.getInteger("returncrystal"));

 

 

}

public void igniteTorch(){

if(on){

fire = true;

worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); // Makes the server call getDescriptionPacket for a full data sync

}

}

public void turnOn(){

if(!on){

on = true;

worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); // Makes the server call getDescriptionPacket for a full data sync

}

}

public void killTorch(){

if(fire){

fire = false;

worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); // Makes the server call getDescriptionPacket for a full data sync

}

}

public void turnOff(){

if(on){

on = false;

worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); // Makes the server call getDescriptionPacket for a full data sync

}

}

    @Override

    public Packet getDescriptionPacket()

    {

        NBTTagCompound nbttagcompound = new NBTTagCompound();

        writeToNBT(nbttagcompound);

        return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, nbttagcompound);

    }

   

    @Override

    public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity packet)

    {

        readFromNBT(packet.func_148857_g());

        worldObj.func_147479_m(xCoord, yCoord, zCoord);

    }

    public void activate(){

    if(this.on){

    this.fire = true;

    }

    if(worldObj.getTileEntity(xCoord, yCoord + 1, zCoord) instanceof TileEntityChest){

int slot = 420;

    TileEntityChest chest = (TileEntityChest)worldObj.getTileEntity(xCoord, yCoord + 1, zCoord);

    for(int i = 29; i == -1; i--){

    Item theitem = chest.getStackInSlot(i).getItem();

    if(theitem != null){

    if(crystaltypes.contains(theitem)){

        int index = crystaltypes.indexOf(theitem);

        this.returncrystal = (Item)resultcrystals.get(index);

    slot = i;

    }

    }

    }

    if(!this.on && slot != 420 && RabidFoxUtil.searchChestForItem(SyntheticGems.itemoxybottle, chest) != -1 && RabidFoxUtil.searchChestForItem(SyntheticGems.itemhydbottle, chest) != -1){

    chest.getStackInSlot(RabidFoxUtil.searchChestForItem(SyntheticGems.itemoxybottle, chest)).stackSize--;

    chest.getStackInSlot(RabidFoxUtil.searchChestForItem(SyntheticGems.itemhydbottle, chest)).stackSize--;

    chest.getStackInSlot(slot).stackSize--;

    this.on = true;

    }

    }

    }

@Override

public void updateEntity(){

if(on && !fire){

this.worldObj.spawnParticle("cloud", 0.5F + (worldObj.rand.nextFloat() / 5), 0.75F, 0.5F + (worldObj.rand.nextFloat() / 5), 0, -0.2F, 0);

}

if(on && fire){

this.worldObj.spawnParticle("flame", 0.5F + (worldObj.rand.nextFloat() / 5), 0.75F, 0.5F + (worldObj.rand.nextFloat() / 5), 0, -0.5F, 0);

}

}

}

Link to comment
Share on other sites

[10:26:43] [Client thread/WARN]: Failed to load texture: syntheticgems:textures/blocks/tesrhydrotorch.png
java.io.FileNotFoundException: syntheticgems:textures/blocks/tesrhydrotorch.png

 

I'd start here. Been a few months since I've read through one of these logs but hey ;)

I think its my java of the variables.

Link to comment
Share on other sites

Fixed. Now it says

[10:55:17] [main/INFO] [GradleStart]: Extra: []
[10:55:17] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/machi_000/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[10:55:18] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[10:55:18] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[10:55:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[10:55:18] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[10:55:18] [main/INFO] [FML]: Forge Mod Loader version 7.99.16.1448 for Minecraft 1.7.10 loading
[10:55:18] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_45, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jre1.8.0_45
[10:55:18] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[10:55:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[10:55:18] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
[10:55:18] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[10:55:18] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[10:55:18] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[10:55:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[10:55:18] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[10:55:18] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[10:55:18] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[10:55:18] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[10:55:22] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[10:55:22] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[10:55:22] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[10:55:24] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[10:55:24] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
[10:55:24] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
[10:55:24] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[10:55:28] [main/INFO]: Setting user: Player197
[10:55:38] [Client thread/INFO]: LWJGL Version: 2.9.1
[10:55:51] [Client thread/INFO] [sTDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: ---- Minecraft Crash Report ----
// Don't be sad, have a hug! <3

Time: 11/5/15 10:55 AM
Description: Loading screen debug info

This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.8.0_45, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 783152296 bytes (746 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: 
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.3.12682 Compatibility Profile Context 13.302.1601.0' Renderer: 'AMD Radeon(TM) R3 Graphics'
[10:55:52] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[10:55:52] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1448 Initialized
[10:55:52] [Client thread/INFO] [FML]: Replaced 183 ore recipies
[10:55:53] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[10:55:54] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[10:55:54] [Client thread/INFO] [FML]: Searching C:\Users\machi_000\Documents\Minecraft Development\syntheticgems\eclipse\mods for mods
[10:56:03] [Client thread/INFO] [syntheticgems]: Mod syntheticgems is missing the required element 'name'. Substituting syntheticgems
[10:56:22] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[10:56:24] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, syntheticgems] at CLIENT
[10:56:24] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, syntheticgems] at SERVER
[10:56:26] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:syntheticgems
[10:56:26] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[10:56:26] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
[10:56:26] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[10:56:26] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[10:56:26] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[10:56:26] [Client thread/INFO] [FML]: Applying holder lookups
[10:56:26] [Client thread/INFO] [FML]: Holder lookups applied
[10:56:26] [Client thread/INFO] [FML]: Injecting itemstacks
[10:56:26] [Client thread/INFO] [FML]: Itemstack injection complete
[10:56:27] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[10:56:27] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
[10:56:27] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[10:56:27] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[10:56:29] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[10:56:29] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[10:56:29] [sound Library Loader/INFO]: Sound engine started
[10:56:48] [Client thread/WARN]: Invalid sounds.json
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated array at line 6 column 8
at com.google.gson.internal.Streams.parse(Streams.java:56) ~[streams.class:?]
at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]
at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40) ~[TypeAdapterRuntimeTypeWrapper.class:?]
at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:187) ~[MapTypeAdapterFactory$Adapter.class:?]
at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:145) ~[MapTypeAdapterFactory$Adapter.class:?]
at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]
at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?]
at net.minecraft.client.audio.SoundHandler.onResourceManagerReload(SoundHandler.java:84) [soundHandler.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:130) [simpleReloadableResourceManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:528) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:942) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
at GradleStart.main(Unknown Source) [start/:?]
Caused by: com.google.gson.stream.MalformedJsonException: Unterminated array at line 6 column 8
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?]
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:465) ~[JsonReader.class:?]
at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[JsonReader.class:?]
at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:658) ~[TypeAdapters$25.class:?]
at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[TypeAdapters$25.class:?]
at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?]
at com.google.gson.internal.Streams.parse(Streams.java:44) ~[streams.class:?]
... 19 more
[10:56:51] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[10:56:52] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[10:56:52] [Client thread/INFO] [sTDOUT]: [com.rabidfox.syntheticgems.SyntheticGems:init:129]: Successfully Registered World Generator
[10:56:53] [Client thread/INFO] [FML]: Injecting itemstacks
[10:56:53] [Client thread/INFO] [FML]: Itemstack injection complete
[10:56:54] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[10:56:54] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:syntheticgems
[10:56:56] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[10:56:57] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[10:56:57] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[10:56:57] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...
[10:56:57] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
[10:56:57] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[10:56:57] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[10:56:57] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
[10:56:57] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[10:56:57] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[10:56:57] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[10:56:57] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[10:56:57] [sound Library Loader/INFO]: Sound engine started
[10:57:01] [Client thread/WARN]: Invalid sounds.json
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated array at line 6 column 8
at com.google.gson.internal.Streams.parse(Streams.java:56) ~[streams.class:?]
at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]
at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40) ~[TypeAdapterRuntimeTypeWrapper.class:?]
at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:187) ~[MapTypeAdapterFactory$Adapter.class:?]
at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:145) ~[MapTypeAdapterFactory$Adapter.class:?]
at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]
at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?]
at net.minecraft.client.audio.SoundHandler.onResourceManagerReload(SoundHandler.java:84) [soundHandler.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:143) [simpleReloadableResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:121) [simpleReloadableResourceManager.class:?]
at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:654) [Minecraft.class:?]
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:327) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:597) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:942) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
at GradleStart.main(Unknown Source) [start/:?]
Caused by: com.google.gson.stream.MalformedJsonException: Unterminated array at line 6 column 8
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?]
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:465) ~[JsonReader.class:?]
at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[JsonReader.class:?]
at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:658) ~[TypeAdapters$25.class:?]
at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[TypeAdapters$25.class:?]
at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?]
at com.google.gson.internal.Streams.parse(Streams.java:44) ~[streams.class:?]
... 22 more
[10:59:27] [server thread/INFO]: Starting integrated minecraft server version 1.7.10
[10:59:27] [server thread/INFO]: Generating keypair
[10:59:28] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[10:59:28] [server thread/INFO] [FML]: Applying holder lookups
[10:59:28] [server thread/INFO] [FML]: Holder lookups applied
[10:59:28] [server thread/INFO] [FML]: Loading dimension 0 (Test) (net.minecraft.server.integrated.IntegratedServer@4e2f3ad8)
[10:59:28] [server thread/INFO] [FML]: Loading dimension 1 (Test) (net.minecraft.server.integrated.IntegratedServer@4e2f3ad8)
[10:59:28] [server thread/INFO] [FML]: Loading dimension -1 (Test) (net.minecraft.server.integrated.IntegratedServer@4e2f3ad8)
[10:59:28] [server thread/INFO]: Preparing start region for level 0
[10:59:29] [server thread/INFO]: Preparing spawn area: 21%
[10:59:30] [server thread/INFO]: Changing view distance to 12, from 10
[10:59:32] [Netty Client IO #0/INFO] [FML]: Server protocol version 2
[10:59:32] [Netty IO #1/INFO] [FML]: Client protocol version 2
[10:59:32] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]
[10:59:32] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
[10:59:32] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
[10:59:32] [server thread/INFO] [FML]: [server thread] Server side modded connection established
[10:59:32] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
[10:59:32] [server thread/INFO]: Player197[local:E:d05b5fbe] logged in with entity id 186 at (-242.5156805705788, 4.0, 440.0834589374958)
[10:59:32] [server thread/INFO]: Player197 joined the game
[10:59:39] [Client thread/FATAL]: Unreported exception thrown!
java.lang.NullPointerException
at com.rabidfox.syntheticgems.TileHydroTorch.<init>(TileHydroTorch.java:23) ~[TileHydroTorch.class:?]
at com.rabidfox.syntheticgems.BlockHydroTorch.createNewTileEntity(BlockHydroTorch.java:48) ~[blockHydroTorch.class:?]
at net.minecraft.block.Block.createTileEntity(Block.java:1775) ~[block.class:?]
at net.minecraft.world.chunk.Chunk.func_150806_e(Chunk.java:933) ~[Chunk.class:?]
at net.minecraft.world.ChunkCache.getTileEntity(ChunkCache.java:102) ~[ChunkCache.class:?]
at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:189) ~[WorldRenderer.class:?]
at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1618) ~[RenderGlobal.class:?]
at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1263) ~[EntityRenderer.class:?]
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1087) ~[EntityRenderer.class:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1067) ~[Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:962) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
at GradleStart.main(Unknown Source) [start/:?]
[10:59:39] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: ---- Minecraft Crash Report ----
// This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~]

Time: 11/5/15 10:59 AM
Description: Unexpected error

java.lang.NullPointerException: Unexpected error
at com.rabidfox.syntheticgems.TileHydroTorch.<init>(TileHydroTorch.java:23)
at com.rabidfox.syntheticgems.BlockHydroTorch.createNewTileEntity(BlockHydroTorch.java:48)
at net.minecraft.block.Block.createTileEntity(Block.java:1775)
at net.minecraft.world.chunk.Chunk.func_150806_e(Chunk.java:933)
at net.minecraft.world.ChunkCache.getTileEntity(ChunkCache.java:102)
at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:189)
at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1618)
at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1263)
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1087)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1067)
at net.minecraft.client.Minecraft.run(Minecraft.java:962)
at net.minecraft.client.main.Main.main(Main.java:164)
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 net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at com.rabidfox.syntheticgems.TileHydroTorch.<init>(TileHydroTorch.java:23)
at com.rabidfox.syntheticgems.BlockHydroTorch.createNewTileEntity(BlockHydroTorch.java:48)
at net.minecraft.block.Block.createTileEntity(Block.java:1775)
at net.minecraft.world.chunk.Chunk.func_150806_e(Chunk.java:933)
at net.minecraft.world.ChunkCache.getTileEntity(ChunkCache.java:102)
at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:189)
at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1618)
at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1263)

-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['Player197'/186, l='MpServer', x=-242.52, y=5.62, z=440.08]]
Chunk stats: MultiplayerChunkCache: 140, 140
Level seed: 0
Level generator: ID 01 - flat, ver 0. Features enabled: false
Level generator options: 
Level spawn location: World: (-234,4,421), Chunk: (at 6,0,5 in -15,26; contains blocks -240,0,416 to -225,255,431), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Level time: 103785 game time, 8201 day time
Level dimension: 0
Level storage version: 0x00000 - Unknown?
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
Forced entities: 71 total; [EntityCow['Cow'/128, l='MpServer', x=-198.75, y=4.00, z=445.69], EntityChicken['Chicken'/133, l='MpServer', x=-189.41, y=4.00, z=429.38], EntityHorse['Donkey'/134, l='MpServer', x=-183.03, y=4.00, z=463.88], EntitySheep['Sheep'/135, l='MpServer', x=-187.84, y=4.00, z=491.22], EntitySheep['Sheep'/136, l='MpServer', x=-177.84, y=4.00, z=488.59], EntityPig['Pig'/142, l='MpServer', x=-170.19, y=4.00, z=396.75], EntityChicken['Chicken'/144, l='MpServer', x=-174.47, y=4.00, z=442.44], EntitySheep['Sheep'/145, l='MpServer', x=-166.78, y=4.00, z=441.22], EntityClientPlayerMP['Player197'/186, l='MpServer', x=-242.52, y=5.62, z=440.08], EntityPig['Pig'/26, l='MpServer', x=-321.84, y=4.00, z=473.72], EntityCow['Cow'/32, l='MpServer', x=-311.22, y=4.00, z=373.69], EntityCow['Cow'/33, l='MpServer', x=-311.41, y=4.00, z=378.28], EntitySheep['Sheep'/34, l='MpServer', x=-312.03, y=4.00, z=396.94], EntityChicken['Chicken'/35, l='MpServer', x=-314.53, y=4.00, z=399.56], EntitySheep['Sheep'/36, l='MpServer', x=-318.03, y=4.00, z=409.91], EntityHorse['Horse'/37, l='MpServer', x=-307.34, y=4.00, z=463.13], EntitySheep['Sheep'/38, l='MpServer', x=-311.94, y=4.00, z=448.81], EntityPig['Pig'/39, l='MpServer', x=-308.81, y=4.00, z=475.34], EntitySheep['Sheep'/40, l='MpServer', x=-314.31, y=4.00, z=464.13], EntitySheep['Sheep'/41, l='MpServer', x=-305.22, y=4.00, z=492.81], EntityChicken['Chicken'/42, l='MpServer', x=-319.44, y=4.00, z=482.31], EntityChicken['Chicken'/43, l='MpServer', x=-304.19, y=4.00, z=493.59], EntityChicken['Chicken'/44, l='MpServer', x=-306.53, y=4.00, z=502.47], EntityCow['Cow'/49, l='MpServer', x=-292.53, y=4.00, z=362.06], EntityCow['Cow'/50, l='MpServer', x=-302.03, y=4.00, z=380.13], EntityHorse['Horse'/51, l='MpServer', x=-290.53, y=4.00, z=405.84], EntityCow['Cow'/52, l='MpServer', x=-300.75, y=4.00, z=421.59], EntitySheep['Sheep'/53, l='MpServer', x=-297.03, y=4.00, z=429.09], EntityChicken['Chicken'/54, l='MpServer', x=-301.44, y=4.00, z=448.47], EntityChicken['Chicken'/55, l='MpServer', x=-301.22, y=4.00, z=475.34], EntitySheep['Sheep'/56, l='MpServer', x=-289.25, y=4.00, z=470.63], EntityPig['Pig'/57, l='MpServer', x=-300.91, y=4.00, z=471.97], EntityChicken['Chicken'/58, l='MpServer', x=-300.38, y=4.00, z=473.59], EntityPig['Pig'/59, l='MpServer', x=-301.94, y=4.00, z=476.34], EntityPig['Pig'/66, l='MpServer', x=-278.19, y=4.00, z=399.69], EntityChicken['Chicken'/67, l='MpServer', x=-285.47, y=4.00, z=403.91], EntitySheep['Sheep'/68, l='MpServer', x=-285.13, y=4.00, z=421.19], EntityPig['Pig'/69, l='MpServer', x=-280.25, y=4.00, z=437.84], EntityCow['Cow'/70, l='MpServer', x=-279.97, y=4.00, z=450.06], EntityPig['Pig'/71, l='MpServer', x=-286.09, y=4.00, z=467.13], EntityHorse['Horse'/72, l='MpServer', x=-285.50, y=4.00, z=494.19], EntityChicken['Chicken'/73, l='MpServer', x=-277.34, y=4.00, z=480.41], EntityChicken['Chicken'/74, l='MpServer', x=-278.56, y=4.00, z=505.38], EntityChicken['Chicken'/75, l='MpServer', x=-279.59, y=4.00, z=501.47], EntitySheep['Sheep'/77, l='MpServer', x=-277.88, y=4.00, z=517.13], EntityChicken['Chicken'/81, l='MpServer', x=-259.44, y=4.00, z=364.63], EntityPig['Pig'/83, l='MpServer', x=-259.91, y=4.00, z=368.91], EntityChicken['Chicken'/84, l='MpServer', x=-271.41, y=4.00, z=399.41], EntityChicken['Chicken'/85, l='MpServer', x=-259.34, y=4.00, z=392.81], EntityHorse['Horse'/86, l='MpServer', x=-269.22, y=4.00, z=385.91], EntityCow['Cow'/87, l='MpServer', x=-268.41, y=4.00, z=415.72], EntityHorse['Horse'/88, l='MpServer', x=-259.16, y=4.00, z=466.94], EntityHorse['Horse'/89, l='MpServer', x=-263.34, y=4.00, z=483.84], EntityChicken['Chicken'/96, l='MpServer', x=-245.59, y=4.00, z=364.47], EntityChicken['Chicken'/97, l='MpServer', x=-253.41, y=4.00, z=376.19], EntitySheep['Sheep'/98, l='MpServer', x=-241.94, y=4.00, z=373.91], EntityHorse['Horse'/99, l='MpServer', x=-247.06, y=4.00, z=387.94], EntityChicken['Chicken'/100, l='MpServer', x=-247.56, y=4.00, z=403.41], EntityCow['Cow'/104, l='MpServer', x=-228.50, y=4.00, z=402.31], EntityPig['Pig'/105, l='MpServer', x=-235.03, y=4.00, z=401.94], EntityItem['item.tile.workbench'/106, l='MpServer', x=-237.88, y=4.13, z=431.97], EntityItem['item.tile.monsterStoneEgg.crackedbrick'/107, l='MpServer', x=-237.53, y=4.13, z=432.50], EntityCow['Cow'/108, l='MpServer', x=-231.06, y=4.00, z=498.97], EntitySheep['Sheep'/115, l='MpServer', x=-219.22, y=4.00, z=367.56], EntityCow['Cow'/116, l='MpServer', x=-222.72, y=4.00, z=362.22], EntityChicken['Chicken'/117, l='MpServer', x=-214.59, y=4.00, z=376.56], EntitySheep['Sheep'/118, l='MpServer', x=-224.56, y=4.00, z=500.66], EntityCow['Cow'/119, l='MpServer', x=-223.94, y=4.00, z=516.16], EntitySheep['Sheep'/125, l='MpServer', x=-195.06, y=4.00, z=367.91], EntityCow['Cow'/126, l='MpServer', x=-198.28, y=4.00, z=393.22], EntityChicken['Chicken'/127, l='MpServer', x=-195.41, y=4.00, z=439.44]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2566)
at net.minecraft.client.Minecraft.run(Minecraft.java:991)
at net.minecraft.client.main.Main.main(Main.java:164)
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 net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.8.0_45, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 703578088 bytes (670 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1448 4 mods loaded, 4 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCHIJAAAA	mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) 
UCHIJAAAA	FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar) 
UCHIJAAAA	Forge{10.13.4.1448} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar) 
UCHIJAAAA	syntheticgems{1.0.0} [syntheticgems] (bin) 
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.3.12682 Compatibility Profile Context 13.302.1601.0' Renderer: 'AMD Radeon(TM) R3 Graphics'
Launched Version: 1.7.10
LWJGL: 2.9.1
OpenGL: AMD Radeon(TM) R3 Graphics GL version 4.3.12682 Compatibility Profile Context 13.302.1601.0, ATI Technologies Inc.
GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported.

Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)
[10:59:39] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\machi_000\Documents\Minecraft Development\syntheticgems\eclipse\.\crash-reports\crash-2015-11-05_10.59.39-client.txt
[10:59:39] [Client Shutdown Thread/INFO]: Stopping server
[10:59:39] [Client Shutdown Thread/INFO]: Saving players
AL lib: (EE) alc_cleanup: 1 device not closed
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

Link to comment
Share on other sites

I'd start here. Been a few months since I've read through one of these logs but hey ;)

 

No, a missing texture is not going to cause an NPE.

 

OP, the problem is you're adding things to a list that is null, before you add anything to your lists you need to initialize them with an empty ArrayList.

Don't make mods if you don't know Java.

Check out my website: http://shadowfacts.net

Developer of many mods

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I am creating a mod that adds new armor sets and changes how armor sets are crafted. When the player interacts with the block it fails to open the gui, but I get no error or stacktrace. All of my registration classes are being called correctly. LightArmorBenchScreen's constructor, render, and renderbg methods are not being called at all. Here is the code: package net.leeveygames.celestial.blocks.custom; import net.leeveygames.celestial.Celestial; import net.leeveygames.celestial.blocks.entity.CelestialBlockEntities; import net.leeveygames.celestial.blocks.entity.LightArmorBenchBlockEntity; import net.minecraft.core.BlockPos; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.InteractionHand; import net.minecraft.world.InteractionResult; import net.minecraft.world.entity.player.Player; import net.minecraft.world.level.BlockGetter; import net.minecraft.world.level.Level; import net.minecraft.world.level.block.BaseEntityBlock; import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.RenderShape; import net.minecraft.world.level.block.entity.BlockEntity; import net.minecraft.world.level.block.entity.BlockEntityTicker; import net.minecraft.world.level.block.entity.BlockEntityType; import net.minecraft.world.level.block.state.BlockState; import net.minecraft.world.phys.BlockHitResult; import net.minecraft.world.phys.shapes.CollisionContext; import net.minecraft.world.phys.shapes.VoxelShape; import net.minecraftforge.network.NetworkHooks; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; public class LightArmorBenchBlock extends BaseEntityBlock { public static final VoxelShape SHAPE = Block.box(0, 0, 0, 16, 12, 16); public LightArmorBenchBlock(Properties pProperties) { super(pProperties); } @Override public VoxelShape getShape(BlockState pState, BlockGetter pLevel, BlockPos pPos, CollisionContext pContext) { return SHAPE; } @Override public RenderShape getRenderShape(BlockState pState) { return RenderShape.MODEL; } @Override public void onRemove(BlockState pState, Level pLevel, BlockPos pPos, BlockState pNewState, boolean pIsMoving) { if (pState.getBlock() != pNewState.getBlock()) { BlockEntity blockEntity = pLevel.getBlockEntity(pPos); if (blockEntity instanceof LightArmorBenchBlockEntity) { ((LightArmorBenchBlockEntity) blockEntity).drops(); } } super.onRemove(pState, pLevel, pPos, pNewState, pIsMoving); } @NotNull @Override public InteractionResult use(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHit) { if(pLevel.isClientSide()) return InteractionResult.SUCCESS; BlockEntity be = pLevel.getBlockEntity(pPos); if (be instanceof LightArmorBenchBlockEntity blockEntity) { ServerPlayer player = (ServerPlayer)pPlayer; Celestial.LOGGER.info("Opening Screen."); NetworkHooks.openScreen(player, blockEntity, pPos); } return InteractionResult.CONSUME; } @Nullable @Override public BlockEntity newBlockEntity(BlockPos pPos, BlockState pState) { return new LightArmorBenchBlockEntity(pPos, pState); } @Nullable @Override public <T extends BlockEntity> BlockEntityTicker<T> getTicker(Level pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) { if(pLevel.isClientSide()) { return null; } return createTickerHelper(pBlockEntityType, CelestialBlockEntities.LIGHT_ARMOR_BENCH_BLOCK_ENTITY.get(), (pLevel1, pPos, pState1, pBlockEntity) -> pBlockEntity.tick(pLevel1, pPos, pState1)); } }   package net.leeveygames.celestial.screen; import net.leeveygames.celestial.Celestial; import net.leeveygames.celestial.blocks.CelestialBlocks; import net.leeveygames.celestial.blocks.entity.LightArmorBenchBlockEntity; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.world.entity.player.Inventory; import net.minecraft.world.entity.player.Player; import net.minecraft.world.inventory.*; import net.minecraft.world.item.ItemStack; import net.minecraft.world.level.Level; import net.minecraft.world.level.block.entity.BlockEntity; import net.minecraftforge.common.capabilities.ForgeCapabilities; import net.minecraftforge.items.SlotItemHandler; public class LightArmorBenchMenu extends AbstractContainerMenu { public final LightArmorBenchBlockEntity blockEntity; private final Level level; public LightArmorBenchMenu(int pContainerId, Inventory inv, FriendlyByteBuf extraData) { this(pContainerId, inv, inv.player.level().getBlockEntity(extraData.readBlockPos())); Celestial.LOGGER.info("Creating Light Armor Bench Menu. Client"); } public LightArmorBenchMenu(int pContainerId, Inventory inv, BlockEntity entity) { super(CelestialMenuTypes.LIGHT_ARMOR_BENCH_MENU.get(), pContainerId); Celestial.LOGGER.info("Creating Light Armor Bench Menu. Server"); checkContainerSize(inv, 2); blockEntity = ((LightArmorBenchBlockEntity) entity); this.level = inv.player.level(); addPlayerInventory(inv); addPlayerHotbar(inv); createLightArmorBenchSlots(blockEntity); } private void createLightArmorBenchSlots(LightArmorBenchBlockEntity blockEntity) { Celestial.LOGGER.info("Creating Light Armor Bench Slots."); this.blockEntity.getCapability(ForgeCapabilities.ITEM_HANDLER).ifPresent(iItemHandler -> { this.addSlot(new SlotItemHandler(iItemHandler, 0, 11, 15)); this.addSlot(new SlotItemHandler(iItemHandler, 1, 82, 33)); this.addSlot(new SlotItemHandler(iItemHandler, 2, 133, 33)); }); } // CREDIT GOES TO: diesieben07 | https://github.com/diesieben07/SevenCommons // must assign a slot number to each of the slots used by the GUI. // For this container, we can see both the tile inventory's slots as well as the player inventory slots and the hotbar. // Each time we add a Slot to the container, it automatically increases the slotIndex, which means // 0 - 8 = hotbar slots (which will map to the InventoryPlayer slot numbers 0 - 8) // 9 - 35 = player inventory slots (which map to the InventoryPlayer slot numbers 9 - 35) // 36 - 44 = TileInventory slots, which map to our TileEntity slot numbers 0 - 8) private static final int HOTBAR_SLOT_COUNT = 9; private static final int PLAYER_INVENTORY_ROW_COUNT = 3; private static final int PLAYER_INVENTORY_COLUMN_COUNT = 9; private static final int PLAYER_INVENTORY_SLOT_COUNT = PLAYER_INVENTORY_COLUMN_COUNT * PLAYER_INVENTORY_ROW_COUNT; private static final int VANILLA_SLOT_COUNT = HOTBAR_SLOT_COUNT + PLAYER_INVENTORY_SLOT_COUNT; private static final int VANILLA_FIRST_SLOT_INDEX = 0; private static final int TE_INVENTORY_FIRST_SLOT_INDEX = VANILLA_FIRST_SLOT_INDEX + VANILLA_SLOT_COUNT; // THIS YOU HAVE TO DEFINE! private static final int TE_INVENTORY_SLOT_COUNT = 2; // must be the number of slots you have! @Override public ItemStack quickMoveStack(Player playerIn, int pIndex) { Slot sourceSlot = slots.get(pIndex); if (sourceSlot == null || !sourceSlot.hasItem()) return ItemStack.EMPTY; //EMPTY_ITEM ItemStack sourceStack = sourceSlot.getItem(); ItemStack copyOfSourceStack = sourceStack.copy(); // Check if the slot clicked is one of the vanilla container slots if (pIndex < VANILLA_FIRST_SLOT_INDEX + VANILLA_SLOT_COUNT) { // This is a vanilla container slot so merge the stack into the tile inventory if (!moveItemStackTo(sourceStack, TE_INVENTORY_FIRST_SLOT_INDEX, TE_INVENTORY_FIRST_SLOT_INDEX + TE_INVENTORY_SLOT_COUNT, false)) { return ItemStack.EMPTY; // EMPTY_ITEM } } else if (pIndex < TE_INVENTORY_FIRST_SLOT_INDEX + TE_INVENTORY_SLOT_COUNT) { // This is a TE slot so merge the stack into the players inventory if (!moveItemStackTo(sourceStack, VANILLA_FIRST_SLOT_INDEX, VANILLA_FIRST_SLOT_INDEX + VANILLA_SLOT_COUNT, false)) { return ItemStack.EMPTY; } } else { System.out.println("Invalid slotIndex:" + pIndex); return ItemStack.EMPTY; } // If stack size == 0 (the entire stack was moved) set slot contents to null if (sourceStack.getCount() == 0) { sourceSlot.set(ItemStack.EMPTY); } else { sourceSlot.setChanged(); } sourceSlot.onTake(playerIn, sourceStack); return copyOfSourceStack; } @Override public boolean stillValid(Player pPlayer) { return stillValid(ContainerLevelAccess.create(level, blockEntity.getBlockPos()), pPlayer, CelestialBlocks.LIGHT_ARMOR_BENCH.get()); } private void addPlayerInventory(Inventory playerInventory) { Celestial.LOGGER.info("Creating Player Inventory."); for (int i = 0; i < 3; ++i) { for (int l = 0; l < 9; ++l) { this.addSlot(new Slot(playerInventory, l + i * 9 + 9, 8 + l * 18, 84 + i * 18)); } } } private void addPlayerHotbar(Inventory playerInventory) { Celestial.LOGGER.info("Creating Player Hotbar."); for (int i = 0; i < 9; ++i) { this.addSlot(new Slot(playerInventory, i, 8 + i * 18, 142)); } } }   package net.leeveygames.celestial.screen; import com.mojang.blaze3d.systems.RenderSystem; import net.leeveygames.celestial.Celestial; import net.minecraft.client.gui.GuiGraphics; import net.minecraft.client.gui.screens.inventory.AbstractContainerScreen; import net.minecraft.client.renderer.GameRenderer; import net.minecraft.network.chat.Component; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.entity.player.Inventory; public class LightArmorBenchScreen extends AbstractContainerScreen<LightArmorBenchMenu> { private static final ResourceLocation TEXTURE = new ResourceLocation(Celestial.MOD_ID, "textures/gui/LightArmorBenchGUI.png"); public LightArmorBenchScreen(LightArmorBenchMenu pMenu, Inventory pPlayerInventory, Component pTitle) { super(pMenu, pPlayerInventory, pTitle); Celestial.LOGGER.info("Creating Light Armor Bench Screen."); this.imageWidth = 176; this.imageHeight = 166; } @Override protected void init() { Celestial.LOGGER.info("Screen init."); super.init(); } @Override protected void renderBg(GuiGraphics guiGraphics, float pPartialTick, int pMouseX, int pMouseY) { Celestial.LOGGER.info("Render Background Method."); RenderSystem.setShader(GameRenderer::getPositionTexShader); RenderSystem.setShaderColor(1.0F, 1.0F, 1.0F, 1.0F); RenderSystem.setShaderTexture(0, TEXTURE); guiGraphics.blit(TEXTURE, this.leftPos, this.topPos, 0, 0, this.imageWidth, this.imageHeight); } @Override public void render(GuiGraphics guiGraphics, int mouseX, int mouseY, float delta) { Celestial.LOGGER.info("Render Method."); renderBackground(guiGraphics); super.render(guiGraphics, mouseX, mouseY, delta); renderTooltip(guiGraphics, mouseX, mouseY); } }   package net.leeveygames.celestial.blocks.entity; import net.leeveygames.celestial.screen.LightArmorBenchMenu; import net.minecraft.client.gui.screens.inventory.FurnaceScreen; import net.minecraft.core.BlockPos; import net.minecraft.core.Direction; import net.minecraft.nbt.CompoundTag; import net.minecraft.network.chat.Component; import net.minecraft.world.Container; import net.minecraft.world.Containers; import net.minecraft.world.MenuProvider; import net.minecraft.world.SimpleContainer; import net.minecraft.world.entity.player.Inventory; import net.minecraft.world.entity.player.Player; import net.minecraft.world.inventory.AbstractContainerMenu; import net.minecraft.world.inventory.ContainerData; import net.minecraft.world.inventory.FurnaceMenu; import net.minecraft.world.item.Item; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.Items; import net.minecraft.world.level.Level; import net.minecraft.world.level.block.entity.BlockEntity; import net.minecraft.world.level.block.entity.BlockEntityType; import net.minecraft.world.level.block.state.BlockState; import net.minecraftforge.common.capabilities.Capability; import net.minecraftforge.common.capabilities.ForgeCapabilities; import net.minecraftforge.common.util.LazyOptional; import net.minecraftforge.items.IItemHandler; import net.minecraftforge.items.ItemStackHandler; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; public class LightArmorBenchBlockEntity extends BlockEntity implements MenuProvider { private final ItemStackHandler itemHandler = new ItemStackHandler(3) { @Override protected void onContentsChanged(int slot) { super.onContentsChanged(slot); LightArmorBenchBlockEntity.this.setChanged(); } }; private static final int INPUT_SLOT = 0; private static final int OUTPUT_SLOT = 1; private LazyOptional<IItemHandler> lazyItemHandler = LazyOptional.empty(); public LightArmorBenchBlockEntity(BlockPos pPos, BlockState pBlockState) { super(CelestialBlockEntities.LIGHT_ARMOR_BENCH_BLOCK_ENTITY.get(), pPos, pBlockState); } @Override public @NotNull <T> LazyOptional<T> getCapability(@NotNull Capability<T> cap, @Nullable Direction side) { if(cap == ForgeCapabilities.ITEM_HANDLER) { return lazyItemHandler.cast(); } return super.getCapability(cap, side); } @Override public void onLoad() { super.onLoad(); lazyItemHandler = LazyOptional.of(() -> itemHandler); } @Override public void invalidateCaps() { super.invalidateCaps(); lazyItemHandler.invalidate(); } public void drops() { SimpleContainer inventory = new SimpleContainer(itemHandler.getSlots()); for(int i = 0; i < itemHandler.getSlots(); i++) { inventory.setItem(i, itemHandler.getStackInSlot(i)); } Containers.dropContents(this.level, this.worldPosition, inventory); } @Override public Component getDisplayName() { return Component.translatable("block.celestial.light_armor_bench"); } @Nullable @Override public AbstractContainerMenu createMenu(int pContainerId, Inventory pPlayerInventory, Player pPlayer) { return new LightArmorBenchMenu(pContainerId, pPlayerInventory, this); } @Override protected void saveAdditional(CompoundTag pTag) { pTag.put("inventory", itemHandler.serializeNBT()); super.saveAdditional(pTag); } @Override public void load(CompoundTag pTag) { super.load(pTag); itemHandler.deserializeNBT(pTag.getCompound("inventory")); } public void tick(Level pLevel, BlockPos pPos, BlockState pState) { } }   Here is the console output: https://pastebin.com/krgExnYT
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.