net.minecraft.item.consume

public enum UseAction

implements StringIdentifiable

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

Enum constant summary

Enum Constant
NONE
field_8952
NONE
EAT
field_8950
EAT
DRINK
field_8946
DRINK
BLOCK
field_8949
BLOCK
BOW
field_8953
BOW
TRIDENT
field_63380
TRIDENT
CROSSBOW
field_8947
CROSSBOW
SPYGLASS
field_27079
SPYGLASS
TOOT_HORN
field_39058
TOOT_HORN
BRUSH
field_42717
BRUSH
BUNDLE
field_55494
BUNDLE
SPEAR
field_8951
SPEAR

Field summary

Modifier and TypeField
private static final IntFunction<UseAction>
BY_ID
field_53766
BY_ID
public static final com.mojang.serialization.Codec<UseAction>
CODEC
field_53764
CODEC
public static final PacketCodec<io.netty.buffer.ByteBuf, UseAction>
STREAM_CODEC
field_53765
PACKET_CODEC
private final int
id
field_53767
id
private final String
name
field_53768
name
private final boolean
customArmTransform
field_63381
noOffset
private static final UseAction[]
$VALUES
field_8948
field_8948

Constructor summary

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

Method summary

Modifier and TypeMethod
public int
getId()
method_62838()
getId()
public String
getSerializedName()
method_15434()
asString()
public boolean
hasCustomArmTransform()
method_75225()
hasNoOffset()
private static UseAction[]
$values()
method_36686()
method_36686()