Class Containers.Transfer
java.lang.Object
dev.myriadclient.api.service.Containers.Transfer
- Enclosing interface:
Containers
How much a
Containers.View.take(Predicate, Containers.Transfer) or Containers.View.put(Predicate, Containers.Transfer) moves, and whether your hotbar takes part. Start from
all() or upTo(int).-
Method Summary
Modifier and TypeMethodDescriptionstatic Containers.Transferall()Everything that matches, as far as there's room.intcount()The most items to move;Integer.MAX_VALUEforall().booleanhotbar()Whether the hotbar takes part (it does unlesswithoutHotbar()).static Containers.TransferupTo(int count) At mostcountitems, hotbar included.withCount(int count) The same, moving at mostcountitems (negative counts as 0).Leaves your hotbar out: what's taken only goes into the main inventory (put down by hand, two clicks a stack instead of a shift click's one), and what's put only comes from the main inventory.
-
Method Details
-
all
Everything that matches, as far as there's room. -
upTo
At mostcountitems, hotbar included. -
withCount
The same, moving at mostcountitems (negative counts as 0). -
withoutHotbar
Leaves your hotbar out: what's taken only goes into the main inventory (put down by hand, two clicks a stack instead of a shift click's one), and what's put only comes from the main inventory. -
count
public int count()The most items to move;Integer.MAX_VALUEforall(). -
hotbar
public boolean hotbar()Whether the hotbar takes part (it does unlesswithoutHotbar()).
-