public static enum SlotIterator.Type extends Enum<SlotIterator.Type>
| Enum Constant and Description |
|---|
HORIZONTAL
iterates horizontally from the left to the right of the inventory, and
jump to the next line when the last column is reached.
|
VERTICAL
iterates vertically from the up to the down of the inventory, and
jump to the next column when the last line is reached.
|
| Modifier and Type | Method and Description |
|---|---|
static SlotIterator.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SlotIterator.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SlotIterator.Type HORIZONTAL
public static final SlotIterator.Type VERTICAL
public static SlotIterator.Type[] values()
for (SlotIterator.Type c : SlotIterator.Type.values()) System.out.println(c);
public static SlotIterator.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2021. All rights reserved.