Posted December 22, 20159 yr Is there an event that gets called when an itemstack gets extracted from a tileentity. For example, if an itemduct extracts 16 diamonds from my custom machine, is there anything that gets called?
December 22, 20159 yr There's no events for this, but itemducts and their equivalents in other mods use the IInventory / ISidedInventory interfaces to interact with TileEntity s that have inventories. You can do whatever you need to from your implementation of these interfaces. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
December 22, 20159 yr Author Yes, I am aware but I can't find a way to run code whenever an item gets extracted.
December 22, 20159 yr There's no single "extract item" method, but pipes will usually use IInventory#decrStackSize or IInventory#setInventorySlotContents to extract items from a slot. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
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.