Skip to content

API Question #718

Answered by SquidDev
SirEndii asked this question in Q&A
Feb 13, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

The best thing to do is probably have a look at what CC:T's inventory methods do:

https://github.com/SquidDev-CC/CC-Tweaked/blob/1825f67eee86b74542adc374b83ed55ba1c5ab68/src/main/java/dan200/computercraft/shared/peripheral/generic/methods/InventoryMethods.java#L133-L143

Basically you want to use IComputerAccess.getAvailablePeripheral to get peripherals on the network, and then IPeripheral.getTarget to get the original TileEntity (well, assuming mods have correctly implemented the method).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SirEndii
Comment options

Answer selected by SquidDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #717 on February 13, 2021 14:30.