Posted July 2, 20178 yr I am having problems that when the I open the gui, tried to shift-clicking the item to the inventory, it showed the error: Quote java.lang.NullPointerException: Updating screen events at net.minecraft.inventory.Container.slotClick(Container.java:239) at net.minecraft.client.multiplayer.PlayerControllerMP.windowClick(PlayerControllerMP.java:551) at net.minecraft.client.gui.inventory.GuiContainer.handleMouseClick(GuiContainer.java:632) at net.minecraft.client.gui.inventory.GuiContainer.mouseClicked(GuiContainer.java:391) at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:544) at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:512) at net.minecraft.client.Minecraft.runTick(Minecraft.java:1695) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1056) at net.minecraft.client.Minecraft.run(Minecraft.java:372) at net.minecraft.client.main.Main.main(SourceFile:124) 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 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.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) The transferStackInSlot method is in my github repo. Link: https://github.com/letruongthinh/MatterExpansion/blob/1.11.2/src/main/java/io/lethinh/matterexpansion/gui/GenericContainer.java Here is my TileEntity code: https://github.com/letruongthinh/MatterExpansion/blob/1.11.2/src/main/java/io/lethinh/matterexpansion/tile/TileFreezer.java My Container code: https://github.com/letruongthinh/MatterExpansion/blob/1.11.2/src/main/java/io/lethinh/matterexpansion/gui/ContainerFreezer.java My GUI code: https://github.com/letruongthinh/MatterExpansion/blob/1.11.2/src/main/java/io/lethinh/matterexpansion/gui/GuiFreezer.java My GUI Handler code: https://github.com/letruongthinh/MatterExpansion/blob/1.11.2/src/main/java/io/lethinh/matterexpansion/init/GuiHandler.java My block code: https://github.com/letruongthinh/MatterExpansion/blob/1.11.2/src/main/java/io/lethinh/matterexpansion/block/BlockFreezer.java If you need any code, please view it in my github repo. And I have also registered the TileEntity. Thanks in advance! Edited July 3, 20178 yr by lethinh
July 3, 20178 yr Author 7 hours ago, Lucius Q. User said: Post your block code. Oops, I have just edited it!
July 3, 20178 yr Author 19 minutes ago, diesieben07 said: The links are 404. Oh, sorry. The branch is 1.11.2 not master. I have just edited it!
July 3, 20178 yr Author 17 minutes ago, diesieben07 said: I tried to clone your repository and debug this for myself, but your code is full of compilation errors, missing packages, etc. And you even have a broken dependency in your build.gradle. I am very sory but this is the first time I used github.
July 3, 20178 yr Author 3 minutes ago, diesieben07 said: Not sure what this has to do with Github... So could you complie it?
July 3, 20178 yr Author 16 minutes ago, diesieben07 said: No, there are entire packages missing. "network" for example is referenced, but not present. Could you tell me what class used the network package? I remembered removing it.
July 3, 20178 yr Author 20 minutes ago, diesieben07 said: One example: Now I have synced the code in the github with my project. And I have fixed all the compliations error. Thank you for your patient! Edited July 3, 20178 yr by lethinh
July 3, 20178 yr Author 2 minutes ago, diesieben07 said: Your code still does not compile. Are you not checking your code before you push? Do you not use an IDE? I use eclipse and it is correctly. It can run. What do you mean it does not complie? Edited July 3, 20178 yr by lethinh
July 3, 20178 yr Author 5 minutes ago, diesieben07 said: I am starting to believe your IDE is broken: Hide contents Oh, I am so stupid. When I upload the source to github, I forgot to delete the code that I didn't not use in the project. This is really dumb, right?
July 3, 20178 yr Author Just now, diesieben07 said: What are you even doing? What do you mean by "upload"? Are you not using Git from the command line?! No, I'm using git gui.
July 3, 20178 yr Author 1 minute ago, diesieben07 said: Also... Hide contents I'm really like a dumb guy who wanted to develop minecraft mods.
July 21, 20178 yr Author On 3/7/2017 at 5:38 PM, diesieben07 said: I placed down a freezer (which has no textures, btw.). Right-clicking it does nothing. Thanks for your help but I fixed that. Thanks anyway!
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.