Package net.minecraft.util
Enum Hand
- All Implemented Interfaces:
Serializable
,Comparable<Hand>
,java.lang.constant.Constable
public enum Hand extends Enum<Hand>
- Mappings:
Namespace Name official app
intermediary net/minecraft/class_1268
named net/minecraft/util/Hand
-
Enum Constant Details
-
MAIN_HAND
- Mappings:
Namespace Name Mixin selector official a
Lapp;a:Lapp;
intermediary field_5808
Lnet/minecraft/class_1268;field_5808:Lnet/minecraft/class_1268;
named MAIN_HAND
Lnet/minecraft/util/Hand;MAIN_HAND:Lnet/minecraft/util/Hand;
-
OFF_HAND
- Mappings:
Namespace Name Mixin selector official b
Lapp;b:Lapp;
intermediary field_5810
Lnet/minecraft/class_1268;field_5810:Lnet/minecraft/class_1268;
named OFF_HAND
Lnet/minecraft/util/Hand;OFF_HAND:Lnet/minecraft/util/Hand;
-
-
Constructor Details
-
Hand
private Hand()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-