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 - bsl$e
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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 - 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- Lbsl$e;a:Lbsl$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- Lbsl$e;b:Lbsl$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- Lbsl$e;c:Lbsl$e;
 
 
- 
- 
Constructor Details- 
SwingSourceprivate SwingSource()
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
 
-