Package net.minecraft.util
Enum Class SwingAnimationType
- All Implemented Interfaces:
Serializable,Comparable<SwingAnimationType>,Constable,StringIdentifiable
- Mappings:
Namespace Name named net/minecraft/util/SwingAnimationTypeintermediary net/minecraft/class_12122official dlr
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
StringIdentifiable.BasicCodec<S extends StringIdentifiable>, StringIdentifiable.EnumCodec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final IntFunction<SwingAnimationType> static final com.mojang.serialization.Codec<SwingAnimationType> private final Stringstatic final PacketCodec<ByteBuf, SwingAnimationType> private final intFields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.intstatic SwingAnimationTypeReturns the enum constant of this class with the specified name.static SwingAnimationType[]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/SwingAnimationType;NONE:Lnet/minecraft/util/SwingAnimationType;intermediary field_63398Lnet/minecraft/class_12122;field_63398:Lnet/minecraft/class_12122;official aLdlr;a:Ldlr;
-
WHACK
- Mappings:
Namespace Name Mixin selector named WHACKLnet/minecraft/util/SwingAnimationType;WHACK:Lnet/minecraft/util/SwingAnimationType;intermediary field_63399Lnet/minecraft/class_12122;field_63399:Lnet/minecraft/class_12122;official bLdlr;b:Ldlr;
-
STAB
- Mappings:
Namespace Name Mixin selector named STABLnet/minecraft/util/SwingAnimationType;STAB:Lnet/minecraft/util/SwingAnimationType;intermediary field_63400Lnet/minecraft/class_12122;field_63400:Lnet/minecraft/class_12122;official cLdlr;c:Ldlr;
-
-
Field Details
-
BY_PACKET_ID
- Mappings:
Namespace Name Mixin selector named BY_PACKET_IDLnet/minecraft/util/SwingAnimationType;BY_PACKET_ID:Ljava/util/function/IntFunction;intermediary field_63403Lnet/minecraft/class_12122;field_63403:Ljava/util/function/IntFunction;official fLdlr;f:Ljava/util/function/IntFunction;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/util/SwingAnimationType;CODEC:Lcom/mojang/serialization/Codec;intermediary field_63401Lnet/minecraft/class_12122;field_63401:Lcom/mojang/serialization/Codec;official dLdlr;d:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/util/SwingAnimationType;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_63402Lnet/minecraft/class_12122;field_63402:Lnet/minecraft/class_9139;official eLdlr;e:Laat;
-
packetId
private final int packetId- Mappings:
Namespace Name Mixin selector named packetIdLnet/minecraft/util/SwingAnimationType;packetId:Iintermediary field_63404Lnet/minecraft/class_12122;field_63404:Iofficial gLdlr;g:I
-
name
- Mappings:
Namespace Name Mixin selector named nameLnet/minecraft/util/SwingAnimationType;name:Ljava/lang/String;intermediary field_63405Lnet/minecraft/class_12122;field_63405:Ljava/lang/String;official hLdlr;h:Ljava/lang/String;
-
-
Constructor Details
-
SwingAnimationType
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/util/SwingAnimationType;<init>(Ljava/lang/String;IILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_12122;<init>(Ljava/lang/String;IILjava/lang/String;)Vofficial <init>Ldlr;<init>(Ljava/lang/String;IILjava/lang/String;)V
-
-
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
-
getPacketId
public int getPacketId()- Mappings:
Namespace Name Mixin selector named getPacketIdLnet/minecraft/util/SwingAnimationType;getPacketId()Iintermediary method_75226Lnet/minecraft/class_12122;method_75226()Iofficial aLdlr;a()I
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asStringin interfaceStringIdentifiable- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;official cLbhg;c()Ljava/lang/String;
-