net.minecraft.world.item

public enum Rarity

implements StringRepresentable

cxn
net.minecraft.world.item.Rarity
net.minecraft.class_1814
net.minecraft.util.Rarity
net.minecraft.world.item.EnumItemRarity

Enum constant summary

Enum Constant
a
COMMON
field_8906
COMMON
b
UNCOMMON
field_8907
UNCOMMON
c
RARE
field_8903
RARE
d
EPIC
field_8904
EPIC

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<Rarity>
e
CODEC
field_50001
CODEC
public static final IntFunction<Rarity>
f
BY_ID
field_50002
ID_TO_VALUE
public static final StreamCodec<io.netty.buffer.ByteBuf, Rarity>
g
STREAM_CODEC
field_50003
PACKET_CODEC
private final int
h
id
field_50004
index
private final String
i
name
field_50005
name
private final ChatFormatting
j
color
field_8908
formatting

Constructor summary

ModifierConstructor
private (int arg0, String arg1, ChatFormatting index)

Method summary

Modifier and TypeMethod
public ChatFormatting
a()
color()
method_58413()
getFormatting()
public String
c()
getSerializedName()
method_15434()
asString()