net.minecraft.world.item

public enum ItemUseAnimation

implements StringRepresentable

cxr
net.minecraft.world.item.ItemUseAnimation
net.minecraft.class_1839
net.minecraft.item.consume.UseAction
net.minecraft.world.item.ItemUseAnimation

Enum constant summary

Enum Constant
a
NONE
field_8952
NONE
b
EAT
field_8950
EAT
c
DRINK
field_8946
DRINK
d
BLOCK
field_8949
BLOCK
e
BOW
field_8953
BOW
f
SPEAR
field_8951
SPEAR
g
CROSSBOW
field_8947
CROSSBOW
h
SPYGLASS
field_27079
SPYGLASS
i
TOOT_HORN
field_39058
TOOT_HORN
j
BRUSH
field_42717
BRUSH

Field summary

Modifier and TypeField
private static final IntFunction<ItemUseAnimation>
m
BY_ID
field_53766
BY_ID
public static final com.mojang.serialization.Codec<ItemUseAnimation>
k
CODEC
field_53764
CODEC
public static final StreamCodec<io.netty.buffer.ByteBuf, ItemUseAnimation>
l
STREAM_CODEC
field_53765
PACKET_CODEC
private final int
n
id
field_53767
id
private final String
o
name
field_53768
name

Constructor summary

ModifierConstructor
private (int arg0, String arg1)

Method summary

Modifier and TypeMethod
public int
a()
getId()
method_62838()
getId()
public String
c()
getSerializedName()
method_15434()
asString()