Jaacobbi Posted January 15, 2015 Share Posted January 15, 2015 (edited) Sorry for making a new thread but this is a totally different thing so. Now I'm watching this outdated video where for examle getting inventory is "client.getInventory". My Eclipse won't recognize this so I'm assuming it's outdated and there's a newer version of this? How would I do this? Also, would you mind explaining how does the api work? I can find onLoop() etc but for example I couldn't find the "client" > client.getX thing. So let's just make an example. How would I check the inventory (wether it's full or not)? Hopefully after getting this I don't need to ask such silly questions Edited January 15, 2015 by Jaacobbi Link to comment Share on other sites More sharing options...
Joseph Posted January 15, 2015 Share Posted January 15, 2015 use the api young blood. before it use to be client.blah blah blah everything but now its more organized. Just use getInventory() look at the method provider class it contains all class and allow you to grab the instance if the class you might need. Link to comment Share on other sites More sharing options...
Jaacobbi Posted January 15, 2015 Author Share Posted January 15, 2015 use the api young blood. before it use to be client.blah blah blah everything but now its more organized. Just use getInventory() look at the method provider class it contains all class and allow you to grab the instance if the class you might need. Ooh. Thanks! Though I can't seem to manage to find the stuff I'm looking for. I mean I found methodprovider class, but I can't find anything that I want to search for. For example "isFull" - can't find it anywhere nor anything like that on the inventory class (this one) Am I on the wrong page or how come it's not the? o.o Link to comment Share on other sites More sharing options...
Joseph Posted January 15, 2015 Share Posted January 15, 2015 (edited) Ooh. Thanks! Though I can't seem to manage to find the stuff I'm looking for. I mean I found methodprovider class, but I can't find anything that I want to search for. For example "isFull" - can't find it anywhere nor anything like that on the inventory class (this one) Am I on the wrong page or how come it's not the? o.o learn inheritance, its right there dude you just not looking hard enough. Anything that extends ItemContainer contains that super classes methods. For example inventory, bank, shop, etx...... http://prntscr.com/5ss3im Edited January 15, 2015 by josedpay 1 Link to comment Share on other sites More sharing options...
Khaleesi Posted January 15, 2015 Share Posted January 15, 2015 if you coding in your main class just use: inventory.isFull(); If your using it in another class make sure to pass the Script object. So you can acces it ;) Goodluck Pm me if your stuck xD Khaleesi 1 Link to comment Share on other sites More sharing options...