Skip to content

Building dynamic peripheral #1516

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

You must be logged in to vote

how do I suppose [something involving CC's internals]

Uh oh, you're on dangerous ground there! :p.

To actually answer your question, I did a bunch of refactoring in 910a632 to make the method cache per-server, in prep for #1382. You now need to use ServerContext.get(server).peripheralMethods() to get access to a MethodSupplier<PeripheralMethod>, which can then be used to enumerate the methods on an object.

If it's any consolation, as of f5b1626/CC:T 1.106.0, we do now publish the internal common jar, so at least this shouldn't require any multi-loader code.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by SirEdvin
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