Jump to content

Interacting with items

Recommended Posts

Do you mean something like this ?

//here is a method if you dont know the item name
public void inventory() throws InterruptedException {
		Item inv = getInventory().getItem(item -> item.hasAction("Action"));

   //here is other method to get it working by item name if you have the name

           public void inventory() {
                Item l = getInventory().getItem("Lobster");

inLoop add this:

Edited by Mr Pro Pop
Link to comment
Share on other sites

Hello, I was wondering if it was possible to use/open all items of one type in inventory, as efficiently as possible (relative to game ticks)



Write a method which populates a list of events, and then use a range-based for loop to execute them.


For whatever reason (possibly a limitation of Java, the client, or my slow computer), trying to execute multiple within a ~25ms time-frame will cause bad things to happen. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...