Enum ClickType
- java.lang.Object
-
- java.lang.Enum<ClickType>
-
- net.minecraft.inventory.container.ClickType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLONE
PICKUP
PICKUP_ALL
QUICK_CRAFT
QUICK_MOVE
SWAP
THROW
-
Constructor Summary
Constructors Modifier Constructor Description private
ClickType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClickType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ClickType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PICKUP
public static final ClickType PICKUP
-
QUICK_MOVE
public static final ClickType QUICK_MOVE
-
SWAP
public static final ClickType SWAP
-
CLONE
public static final ClickType CLONE
-
THROW
public static final ClickType THROW
-
QUICK_CRAFT
public static final ClickType QUICK_CRAFT
-
PICKUP_ALL
public static final ClickType PICKUP_ALL
-
-
Method Detail
-
values
public static ClickType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ClickType c : ClickType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClickType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-