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$SwingSource
intermediary net/minecraft/class_1269$class_9861
official bti$e
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ActionResult.SwingSource
Returns 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 NONE
Lnet/minecraft/util/ActionResult$SwingSource;NONE:Lnet/minecraft/util/ActionResult$SwingSource;
intermediary field_52426
Lnet/minecraft/class_1269$class_9861;field_52426:Lnet/minecraft/class_1269$class_9861;
official a
Lbti$e;a:Lbti$e;
-
CLIENT
- Mappings:
Namespace Name Mixin selector named CLIENT
Lnet/minecraft/util/ActionResult$SwingSource;CLIENT:Lnet/minecraft/util/ActionResult$SwingSource;
intermediary field_52427
Lnet/minecraft/class_1269$class_9861;field_52427:Lnet/minecraft/class_1269$class_9861;
official b
Lbti$e;b:Lbti$e;
-
SERVER
- Mappings:
Namespace Name Mixin selector named SERVER
Lnet/minecraft/util/ActionResult$SwingSource;SERVER:Lnet/minecraft/util/ActionResult$SwingSource;
intermediary field_52428
Lnet/minecraft/class_1269$class_9861;field_52428:Lnet/minecraft/class_1269$class_9861;
official c
Lbti$e;c:Lbti$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
-