Jump to content

I cannot insert Items into my Slots


Pingubro

Recommended Posts

Hello,

as the title says I can not insert items into my GUI. I am trying to create a filter styled GUI

and I am trying to create a ghost item inside the slots so that people can keep their items

if they configure the block. 

So my idea was to let the ItemHandlers(ItemHanlderFilter) insertItem() Method always

return the full stack. But I can only insert the item if I am decreasing the stack size for atleast one.

I am using a custom FilterSlot and also tried to override the isItemValid Method in there to always return

true. Still not working. I am really confused about this. I am stucked at this point.

 

FilterSlot: https://github.com/hnsdieter/FluxedThings2/blob/master/src/main/java/pingubro/fluxedthings/gui/FilterSlot.java

ItemHandlerFilter: https://github.com/hnsdieter/FluxedThings2/blob/master/src/main/java/pingubro/fluxedthings/itemhandler/ItemHandlerFilter.java

Link to comment
Share on other sites

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

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