Enum Class SwingAnimationType

java.lang.Object
java.lang.Enum<SwingAnimationType>
net.minecraft.util.SwingAnimationType
All Implemented Interfaces:
Serializable, Comparable<SwingAnimationType>, Constable, StringIdentifiable

public enum SwingAnimationType extends Enum<SwingAnimationType> implements StringIdentifiable
Mappings:
Namespace Name
named net/minecraft/util/SwingAnimationType
intermediary net/minecraft/class_12122
official dlr
  • Enum Constant Details

    • NONE

      public static final SwingAnimationType NONE
      Mappings:
      Namespace Name Mixin selector
      named NONE Lnet/minecraft/util/SwingAnimationType;NONE:Lnet/minecraft/util/SwingAnimationType;
      intermediary field_63398 Lnet/minecraft/class_12122;field_63398:Lnet/minecraft/class_12122;
      official a Ldlr;a:Ldlr;
    • WHACK

      public static final SwingAnimationType WHACK
      Mappings:
      Namespace Name Mixin selector
      named WHACK Lnet/minecraft/util/SwingAnimationType;WHACK:Lnet/minecraft/util/SwingAnimationType;
      intermediary field_63399 Lnet/minecraft/class_12122;field_63399:Lnet/minecraft/class_12122;
      official b Ldlr;b:Ldlr;
    • STAB

      public static final SwingAnimationType STAB
      Mappings:
      Namespace Name Mixin selector
      named STAB Lnet/minecraft/util/SwingAnimationType;STAB:Lnet/minecraft/util/SwingAnimationType;
      intermediary field_63400 Lnet/minecraft/class_12122;field_63400:Lnet/minecraft/class_12122;
      official c Ldlr;c:Ldlr;
  • Field Details

    • BY_PACKET_ID

      private static final IntFunction<SwingAnimationType> BY_PACKET_ID
      Mappings:
      Namespace Name Mixin selector
      named BY_PACKET_ID Lnet/minecraft/util/SwingAnimationType;BY_PACKET_ID:Ljava/util/function/IntFunction;
      intermediary field_63403 Lnet/minecraft/class_12122;field_63403:Ljava/util/function/IntFunction;
      official f Ldlr;f:Ljava/util/function/IntFunction;
    • CODEC

      public static final com.mojang.serialization.Codec<SwingAnimationType> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/util/SwingAnimationType;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_63401 Lnet/minecraft/class_12122;field_63401:Lcom/mojang/serialization/Codec;
      official d Ldlr;d:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC

      public static final PacketCodec<ByteBuf,SwingAnimationType> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/util/SwingAnimationType;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_63402 Lnet/minecraft/class_12122;field_63402:Lnet/minecraft/class_9139;
      official e Ldlr;e:Laat;
    • packetId

      private final int packetId
      Mappings:
      Namespace Name Mixin selector
      named packetId Lnet/minecraft/util/SwingAnimationType;packetId:I
      intermediary field_63404 Lnet/minecraft/class_12122;field_63404:I
      official g Ldlr;g:I
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/util/SwingAnimationType;name:Ljava/lang/String;
      intermediary field_63405 Lnet/minecraft/class_12122;field_63405:Ljava/lang/String;
      official h Ldlr;h:Ljava/lang/String;
  • Constructor Details

    • SwingAnimationType

      private SwingAnimationType(int packetId, String name)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/SwingAnimationType;<init>(Ljava/lang/String;IILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_12122;<init>(Ljava/lang/String;IILjava/lang/String;)V
      official <init> Ldlr;<init>(Ljava/lang/String;IILjava/lang/String;)V
  • Method Details

    • values

      public static SwingAnimationType[] 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

      public static SwingAnimationType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getPacketId

      public int getPacketId()
      Mappings:
      Namespace Name Mixin selector
      named getPacketId Lnet/minecraft/util/SwingAnimationType;getPacketId()I
      intermediary method_75226 Lnet/minecraft/class_12122;method_75226()I
      official a Ldlr;a()I
    • asString

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      Returns:
      the unique string representation of the enum, used for serialization
      Mappings:
      Namespace Name Mixin selector
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      official c Lbhg;c()Ljava/lang/String;