net.minecraft.world.item

public enum Rarity

implements StringRepresentable

cvl
net.minecraft.world.item.Rarity
net.minecraft.class_1814
net.minecraft.util.Rarity
net.minecraft.src.C_1407_
net.minecraft.world.item.EnumItemRarity

Enum constant summary

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

Field summary

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

Constructor summary

ModifierConstructor
private (int p_43027_, String p_330136_, ChatFormatting index)

Method summary

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