Jump to content

Recommended Posts

Posted (edited)

Hey,

 

I updated my mod now to use the ItemStackHandler with the capability API and it works great.

My problem is: How can I set the in and output (for hoppers) for the items of my machine with the ItemStackHandler. So: EnumFacing.DOWN -> Extract from slot 1, All other sides -> Insert into slot 0

Edited by IchMagBagga
  • 2 months later...
Posted
On 20.12.2017 at 10:39 PM, diesieben07 said:

getCapability has an EnumFacing parameter. You can return different IItemHandler implementations based on the side if you want different behavior.

Could you explain this a bit further please. I can get it to work and don't know what you mean by "return different IItemHandler implementations".

Should I create my own ItemStackHandler that lets you only extract from slot 1?

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.

Announcements



×
×
  • Create New...

Important Information

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