June 9, 20169 yr public boolean canProcess() { return api.getInventory().isFull(); } public boolean canfix(){ return api.getObjects().);// if a object is on a screen == true, how do I do that? } @Override public void process() { api.getInventory().dropAll(); } } How do i get a boolean to check on screen if a entity is there?
June 9, 20169 yr public boolean canProcess() { return api.getInventory().isFull(); } public boolean canfix(){ return api.getObjects().closest("") != null && api.getObjects().closest("").isVisible();// if a object is on a screen == true, how do I do that? } @Override public void process() { api.getInventory().dropAll(); }
Create an account or sign in to comment