net.minecraft.util

public enum SwingAnimationType

implements StringIdentifiable

net.minecraft.world.item.SwingAnimationType
net.minecraft.class_12122
net.minecraft.util.SwingAnimationType

Enum constant summary

Enum Constant
NONE
field_1_10157
NONE
WHACK
field_63399
WHACK
STAB
field_63400
STAB

Field summary

Modifier and TypeField
private static final IntFunction<SwingAnimationType>
BY_ID
field_63403
BY_PACKET_ID
public static final StringIdentifiable$EnumCodec<SwingAnimationType>
CODEC
field_63401
CODEC
public static final PacketCodec<io.netty.buffer.ByteBuf, SwingAnimationType>
STREAM_CODEC
field_63402
PACKET_CODEC
private final int
id
field_63404
packetId
private final String
name
field_63405
name
private static final SwingAnimationType[]
$VALUES

Constructor summary

ModifierConstructor
private (int $enum$name, String $enum$ordinal)

Method summary

Modifier and TypeMethod
public int
getId()
method_75226()
getPacketId()
public String
getSerializedName()
method_15434()
asString()
public static SwingAnimationType
byName(String name, SwingAnimationType defaultAnimation)
method_1_9434(String arg0, class_12122 arg1)
byName(String name, SwingAnimationType fallback)
private static SwingAnimationType[]
$values()
method_75227()
method_75227()