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_63398
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 com.mojang.serialization.Codec<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
field_63406
field_63406

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()
private static SwingAnimationType[]
$values()
method_75227()
method_75227()