Jump to content

dickdanieljr

Members
  • Posts

    2
  • Joined

  • Last visited

dickdanieljr's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Hey Animefan8888, thanks for your post. I'm trying to get them at PlayerTickEvent and in a LayerRenderer<EntityPlayer>. Actually it seems the server can get the itemstacks from the IItemHandler just well, but the client doesnt.. (I just realized that now) Edit: Ok I found the error. I forgot to sync 1 little field.. stupid
  2. When I try to get the stacks from my inventory capability all are empty. If I open the associated container (extends Container, not IItemHandler) though, and some slots are instantiated and added, the inventory capability with the method getStackInSlot for some reason returns the proper stacks. I havent been able to debug yet what really makes the Slot . Is there something I can do to load the contents of the IItemHandler capability? Iterating through the slots (and getting them) does not work (that returns empty stacks). Is this a somewhat known bug/misuse and (how) can I debug this better? I copied the code from here: https://github.com/Azanor/Baubles Here is the capability code: https://github.com/Azanor/Baubles/tree/master/src/main/java/baubles/api/cap and here the container/slot code: https://github.com/Azanor/Baubles/tree/master/src/main/java/baubles/common/container (it is possible I have missed something when copying and also checking that I didnt forget something later) Many thanks
×
×
  • Create New...

Important Information

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