PatriqDesigns Posted September 27, 2014 Share Posted September 27, 2014 (edited) I have been tryin that for quite long now, without any luck I just wanna add a bit of my API in a nice way. I could really use some help Tyvm Edit: I wanna do something like this but in my "Nodes".. and in my whole script, Acctualy I just wanna change my scripts one :3 Says in my IntelliJ this method is deprecated, so whats the alternative way of doing what I want? Edited September 27, 2014 by PatriqDesigns Link to comment Share on other sites More sharing options...
Xerion Posted September 27, 2014 Share Posted September 27, 2014 It's fine to use exchangeContext(bot). I have used it some scripts before. Link to comment Share on other sites More sharing options...
PatriqDesigns Posted September 27, 2014 Author Share Posted September 27, 2014 It's fine to use exchangeContext(bot). I have used it some scripts before. For some reasons it is deprecated, that means there are other ways of doing it Just asking if anyone knows how to :3 Link to comment Share on other sites More sharing options...
Dog_ Posted September 28, 2014 Share Posted September 28, 2014 For some reasons it is deprecated, that means there are other ways of doing it Just asking if anyone knows how to :3 it doesn't necessarily mean there're other ways of doing it, just that it should be avoided Link to comment Share on other sites More sharing options...
PatriqDesigns Posted September 28, 2014 Author Share Posted September 28, 2014 (edited) it doesn't necessarily mean there're other ways of doing it, just that it should be avoided Well just wanted to know the way of avoiding it.. Anyways if its not possible to avoid, how am I suppose to extend my API with that? Not managing to do it I would like if someone could give me an example. I want to do something like this class CustomMethodProvider extends MethodProvider{ MyInventory inventory = (MyInventory) super.inventory; } How Im I suppose to extend my Script with that MethodProvider and not the OSBot one? like.. class Script extends MyMethodProvider{ //rest of the class } I really could use some help Edited September 28, 2014 by PatriqDesigns Link to comment Share on other sites More sharing options...
FrostBug Posted September 29, 2014 Share Posted September 29, 2014 The devs here generally deprecate methods that are meant for internal use. Which means that most of the deprecated stuff don't actually have alternatives Link to comment Share on other sites More sharing options...