Skip to content

How to query for peripherals at a position? #2234

Closed Answered by SquidDev
jwright159 asked this question in Q&A
Discussion options

You must be logged in to vote

So the short answer is "you shouldn't" :p. Handling invalidation of peripherals is awkward and error-prone (and a high likelihood that this changes again, for fixing #1817 and some chunk-loading issues), so it's not something I recommend other mods try to do — hence this not being exposed in the API.

That said, if you really want to do this (or I guess if the mod is doing it already :p), you want to use PlatformHelper.get().createPeripheralAccess.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jwright159
Comment options

You must be logged in to vote
0 replies
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