Package net.minecraft.util
Enum Class Rarity
- All Implemented Interfaces:
Serializable
,Comparable<Rarity>
,Constable
,StringIdentifiable
- Mappings:
Namespace Name named net/minecraft/util/Rarity
intermediary net/minecraft/class_1814
official cvk
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
StringIdentifiable.BasicCodec<S extends StringIdentifiable>, StringIdentifiable.EnumCodec<E extends Enum<E> & StringIdentifiable>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Rarity> private final Formatting
static final IntFunction
<Rarity> private final int
private final String
static final PacketCodec
<ByteBuf, Rarity> Fields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasString()
Returns the unique string representation of the enum, used for serialization.static Rarity
Returns the enum constant of this class with the specified name.static Rarity[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMMON
- Mappings:
Namespace Name Mixin selector named COMMON
Lnet/minecraft/util/Rarity;COMMON:Lnet/minecraft/util/Rarity;
intermediary field_8906
Lnet/minecraft/class_1814;field_8906:Lnet/minecraft/class_1814;
official a
Lcvk;a:Lcvk;
-
UNCOMMON
- Mappings:
Namespace Name Mixin selector named UNCOMMON
Lnet/minecraft/util/Rarity;UNCOMMON:Lnet/minecraft/util/Rarity;
intermediary field_8907
Lnet/minecraft/class_1814;field_8907:Lnet/minecraft/class_1814;
official b
Lcvk;b:Lcvk;
-
RARE
- Mappings:
Namespace Name Mixin selector named RARE
Lnet/minecraft/util/Rarity;RARE:Lnet/minecraft/util/Rarity;
intermediary field_8903
Lnet/minecraft/class_1814;field_8903:Lnet/minecraft/class_1814;
official c
Lcvk;c:Lcvk;
-
EPIC
- Mappings:
Namespace Name Mixin selector named EPIC
Lnet/minecraft/util/Rarity;EPIC:Lnet/minecraft/util/Rarity;
intermediary field_8904
Lnet/minecraft/class_1814;field_8904:Lnet/minecraft/class_1814;
official d
Lcvk;d:Lcvk;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/util/Rarity;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_50001
Lnet/minecraft/class_1814;field_50001:Lcom/mojang/serialization/Codec;
official e
Lcvk;e:Lcom/mojang/serialization/Codec;
-
ID_TO_VALUE
- Mappings:
Namespace Name Mixin selector named ID_TO_VALUE
Lnet/minecraft/util/Rarity;ID_TO_VALUE:Ljava/util/function/IntFunction;
intermediary field_50002
Lnet/minecraft/class_1814;field_50002:Ljava/util/function/IntFunction;
official f
Lcvk;f:Ljava/util/function/IntFunction;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/util/Rarity;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_50003
Lnet/minecraft/class_1814;field_50003:Lnet/minecraft/class_9139;
official g
Lcvk;g:Lzn;
-
index
private final int index- Mappings:
Namespace Name Mixin selector named index
Lnet/minecraft/util/Rarity;index:I
intermediary field_50004
Lnet/minecraft/class_1814;field_50004:I
official h
Lcvk;h:I
-
name
- Mappings:
Namespace Name Mixin selector named name
Lnet/minecraft/util/Rarity;name:Ljava/lang/String;
intermediary field_50005
Lnet/minecraft/class_1814;field_50005:Ljava/lang/String;
official i
Lcvk;i:Ljava/lang/String;
-
formatting
- Mappings:
Namespace Name Mixin selector named formatting
Lnet/minecraft/util/Rarity;formatting:Lnet/minecraft/util/Formatting;
intermediary field_8908
Lnet/minecraft/class_1814;field_8908:Lnet/minecraft/class_124;
official j
Lcvk;j:Ln;
-
-
Constructor Details
-
Rarity
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/util/Rarity;<init>(Ljava/lang/String;IILjava/lang/String;Lnet/minecraft/util/Formatting;)V
intermediary <init>
Lnet/minecraft/class_1814;<init>(Ljava/lang/String;IILjava/lang/String;Lnet/minecraft/class_124;)V
official <init>
Lcvk;<init>(Ljava/lang/String;IILjava/lang/String;Ln;)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getFormatting
- Mappings:
Namespace Name Mixin selector named getFormatting
Lnet/minecraft/util/Rarity;getFormatting()Lnet/minecraft/util/Formatting;
intermediary method_58413
Lnet/minecraft/class_1814;method_58413()Lnet/minecraft/class_124;
official a
Lcvk;a()Ln;
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asString
in interfaceStringIdentifiable
- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector named asString
Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
intermediary method_15434
Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
official c
Lazu;c()Ljava/lang/String;
-