-
So, I have a strange question, how do I suppose do build dynamic peripheral myself? My dynamic peripherals is usually collected from plugins and I extract methods from them. In past I have used GENERATOR field, that was hidden internally, but now it is even more hidden. Do I need to just re-implement Generator by myself or there is an API that I missed? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 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. |
Beta Was this translation helpful? Give feedback.
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 aMethodSupplier<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.