Posted October 20, 20169 yr Say I had a tile entity that returned an ItemStackHandler with 3 slots, in the getCapability methods. Now, 1 slot is restricted to output, and the other 2 to input. How would I go about automating these slots (connecting pipes to specific sides etc)? Would I make three ItemStackHandlers, and return different ones for different sides? Could you explain in detail?
October 20, 20169 yr Would I make three ItemStackHandlers, and return different ones for different sides? Could you explain in detail? Yes. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/entities/TileEntitySifter.java#L138-L146 Note that inputSlot is actually two slots: https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/entities/capabilities/SiftableItemsHandler.java#L10 I should probably pass the number of slots as part of SiftableItemsHandler's constructor, but that's the only place that class gets used. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
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.