Jump to content

Is there any way to extend the current MethodProvider?


PatriqDesigns

Recommended Posts

I have been tryin that for quite long now, without any luck sad.png I just wanna add a bit of my API in a  nice way.

I could really use some help biggrin.png Tyvm QwPha8E.png

 

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

5RzSp8G.png

 

Says in my IntelliJ this method is deprecated, so whats the alternative way of doing what I want?

62zJb9G.png

Edited by PatriqDesigns
Link to comment
Share on other sites

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 tongue.png

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 sad.png

Edited by PatriqDesigns
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...