Jump to content

Cendrb

Members
  • Posts

    3
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Cendrb's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I have a TileEntity with a container and a custom ItemStackHandler (see gist). I want my ItemStackHandler to allow only a certain amount of items to be put in. Putting items in empty slots and removing them updates the currentNumberOfItems correctly but when I merge them it does not register it. Basically what happens is, that the insertion method insertItem() gets called only with simulate=true and onContentsChanged() callback does not get called at all. (see gist) Am I doing something wrong or is it a bug? Gist: https://gist.github.com/Cendrb/cc11b3b27a72990d05b1bbc82878c7fe
  2. I somehow managed to get my Forge version out of sync with the IDE (idea) files. IDE showed the fields were public and there were no getter methods but gradle didn't want compile it because it was on a different version. After deleting everything and setting the workspace up again it works. Thanks
  3. I was trying to add custom tooltips for vanilla items using the ItemTooltipEvent but I keep getting "field has private access in SomethingEvent" whenever I try accessing any field of the event. I tried some 1.8 event handler tutorials but with no success either. All the other handler methods keep throwing the same error. Handler class is called TooltipHandler registered from CommonProxy in init() on MinecraftForge.EVENT_BUS Forge version: 12.16.0.1813 https://gist.github.com/Cendrb/e20f364cc32d239aec594d2f83aa1e12 Is this just because of the beta state of Forge or am I doing something wrong?
×
×
  • Create New...

Important Information

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