Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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 by lethinh

  • 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!

  • 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.

  • Author
3 minutes ago, diesieben07 said:

Not sure what this has to do with Github...

So could you complie it?

  • 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.

  • Author
20 minutes ago, diesieben07 said:

One example:

0JS7hFD.png

 

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 by lethinh

  • 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 by lethinh

  • Author
5 minutes ago, diesieben07 said:

I am starting to believe your IDE is broken:

  Hide contents

ZBqWIud.png

 

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?

  • 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.

  • Author
1 minute ago, diesieben07 said:

Also...

  Hide contents

y1z93fk.png

 

I'm really like a dumb guy who wanted to develop minecraft mods.

  • 3 weeks later...
  • 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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.