Package net.minecraft.util
Enum Class Rarity
- All Implemented Interfaces:
Serializable
,Comparable<Rarity>
,Constable
,StringIdentifiable
- Mappings:
Namespace Name official ctr
intermediary net/minecraft/class_1814
named net/minecraft/util/Rarity
-
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
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Rarity> static final IntFunction
<Rarity> static final PacketCodec
<ByteBuf, Rarity> private final int
private final String
private final Formatting
Fields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD
-
Constructor Summary
Constructors -
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 official a
Lctr;a:Lctr;
intermediary field_8906
Lnet/minecraft/class_1814;field_8906:Lnet/minecraft/class_1814;
named COMMON
Lnet/minecraft/util/Rarity;COMMON:Lnet/minecraft/util/Rarity;
-
UNCOMMON
- Mappings:
Namespace Name Mixin selector official b
Lctr;b:Lctr;
intermediary field_8907
Lnet/minecraft/class_1814;field_8907:Lnet/minecraft/class_1814;
named UNCOMMON
Lnet/minecraft/util/Rarity;UNCOMMON:Lnet/minecraft/util/Rarity;
-
RARE
- Mappings:
Namespace Name Mixin selector official c
Lctr;c:Lctr;
intermediary field_8903
Lnet/minecraft/class_1814;field_8903:Lnet/minecraft/class_1814;
named RARE
Lnet/minecraft/util/Rarity;RARE:Lnet/minecraft/util/Rarity;
-
EPIC
- Mappings:
Namespace Name Mixin selector official d
Lctr;d:Lctr;
intermediary field_8904
Lnet/minecraft/class_1814;field_8904:Lnet/minecraft/class_1814;
named EPIC
Lnet/minecraft/util/Rarity;EPIC:Lnet/minecraft/util/Rarity;
-
-
Field Details
-
field_50001
- Mappings:
Namespace Name Mixin selector official e
Lctr;e:Lcom/mojang/serialization/Codec;
intermediary field_50001
Lnet/minecraft/class_1814;field_50001:Lcom/mojang/serialization/Codec;
named field_50001
Lnet/minecraft/util/Rarity;field_50001:Lcom/mojang/serialization/Codec;
-
field_50002
- Mappings:
Namespace Name Mixin selector official f
Lctr;f:Ljava/util/function/IntFunction;
intermediary field_50002
Lnet/minecraft/class_1814;field_50002:Ljava/util/function/IntFunction;
named field_50002
Lnet/minecraft/util/Rarity;field_50002:Ljava/util/function/IntFunction;
-
field_50003
- Mappings:
Namespace Name Mixin selector official g
Lctr;g:Lys;
intermediary field_50003
Lnet/minecraft/class_1814;field_50003:Lnet/minecraft/class_9139;
named field_50003
Lnet/minecraft/util/Rarity;field_50003:Lnet/minecraft/network/codec/PacketCodec;
-
field_50004
private final int field_50004- Mappings:
Namespace Name Mixin selector official h
Lctr;h:I
intermediary field_50004
Lnet/minecraft/class_1814;field_50004:I
named field_50004
Lnet/minecraft/util/Rarity;field_50004:I
-
field_50005
- Mappings:
Namespace Name Mixin selector official i
Lctr;i:Ljava/lang/String;
intermediary field_50005
Lnet/minecraft/class_1814;field_50005:Ljava/lang/String;
named field_50005
Lnet/minecraft/util/Rarity;field_50005:Ljava/lang/String;
-
formatting
- Mappings:
Namespace Name Mixin selector official j
Lctr;j:Ln;
intermediary field_8908
Lnet/minecraft/class_1814;field_8908:Lnet/minecraft/class_124;
named formatting
Lnet/minecraft/util/Rarity;formatting:Lnet/minecraft/util/Formatting;
-
-
Constructor Details
-
Rarity
-
-
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
-
method_58413
- Mappings:
Namespace Name Mixin selector official a
Lctr;a()Ln;
intermediary method_58413
Lnet/minecraft/class_1814;method_58413()Lnet/minecraft/class_124;
named method_58413
Lnet/minecraft/util/Rarity;method_58413()Lnet/minecraft/util/Formatting;
-
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 official c
Layt;c()Ljava/lang/String;
intermediary method_15434
Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
named asString
Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-