Package net.minecraft.util
Enum Class ActionResult.SwingSource
- All Implemented Interfaces:
Serializable,Comparable<ActionResult.SwingSource>,Constable
- Enclosing interface:
ActionResult
Represents the side that should be considered the source of truth
for an arm swing, if any.
- Mappings:
Namespace Name named net/minecraft/util/ActionResult$SwingSourceintermediary net/minecraft/class_1269$class_9861official bvc$e
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ActionResult.SwingSourceReturns the enum constant of this class with the specified name.static ActionResult.SwingSource[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
- Mappings:
Namespace Name Mixin selector named NONELnet/minecraft/util/ActionResult$SwingSource;NONE:Lnet/minecraft/util/ActionResult$SwingSource;intermediary field_52426Lnet/minecraft/class_1269$class_9861;field_52426:Lnet/minecraft/class_1269$class_9861;official aLbvc$e;a:Lbvc$e;
-
CLIENT
- Mappings:
Namespace Name Mixin selector named CLIENTLnet/minecraft/util/ActionResult$SwingSource;CLIENT:Lnet/minecraft/util/ActionResult$SwingSource;intermediary field_52427Lnet/minecraft/class_1269$class_9861;field_52427:Lnet/minecraft/class_1269$class_9861;official bLbvc$e;b:Lbvc$e;
-
SERVER
- Mappings:
Namespace Name Mixin selector named SERVERLnet/minecraft/util/ActionResult$SwingSource;SERVER:Lnet/minecraft/util/ActionResult$SwingSource;intermediary field_52428Lnet/minecraft/class_1269$class_9861;field_52428:Lnet/minecraft/class_1269$class_9861;official cLbvc$e;c:Lbvc$e;
-
-
Constructor Details
-
SwingSource
private SwingSource()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-