austinv11 / PeripheralsPlusPlus

A pseudo-port of miscperipherals, with other stuff as well!
GNU General Public License v2.0
25 stars 28 forks source link

Player Interface suggestion #128

Closed alandoyle95 closed 8 years ago

alandoyle95 commented 8 years ago

it would be helpfull/nice if the player interface had a getAllStacks or getInventorySize method to go along with the getStackInSlot seeing there is no way for the computer to know the range of slot #'s the player has without counting or hard programming it into the turtle.

darichey commented 8 years ago

I added getSize. With that information, it's pretty easy to get all of the stacks just with a loop.

alandoyle95 commented 7 years ago

seems to be thoughing a Java out of bounds exception.. latest 1.3.6 build, i will build a dev build and test to see if still happens..

http://pastebin.com/HVjPJzvX