Package net.minecraft.component.type
Enum Class AttributeModifierSlot
- All Implemented Interfaces:
Serializable
,Comparable<AttributeModifierSlot>
,Constable
,StringIdentifiable
- Mappings:
Namespace Name official brp
intermediary net/minecraft/class_9274
named net/minecraft/component/type/AttributeModifierSlot
-
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
<AttributeModifierSlot> private final int
static final IntFunction
<AttributeModifierSlot> private final String
static final PacketCodec
<ByteBuf, AttributeModifierSlot> private final Predicate
<EquipmentSlot> Fields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
AttributeModifierSlot
(int id, String name, Predicate<EquipmentSlot> slotPredicate) private
AttributeModifierSlot
(int id, String name, EquipmentSlot slot) -
Method Summary
Modifier and TypeMethodDescriptionasString()
Returns the unique string representation of the enum, used for serialization.boolean
matches
(EquipmentSlot slot) static AttributeModifierSlot
Returns the enum constant of this class with the specified name.static AttributeModifierSlot[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANY
- Mappings:
Namespace Name Mixin selector official a
Lbrp;a:Lbrp;
intermediary field_49216
Lnet/minecraft/class_9274;field_49216:Lnet/minecraft/class_9274;
named ANY
Lnet/minecraft/component/type/AttributeModifierSlot;ANY:Lnet/minecraft/component/type/AttributeModifierSlot;
-
MAINHAND
- Mappings:
Namespace Name Mixin selector official b
Lbrp;b:Lbrp;
intermediary field_49217
Lnet/minecraft/class_9274;field_49217:Lnet/minecraft/class_9274;
named MAINHAND
Lnet/minecraft/component/type/AttributeModifierSlot;MAINHAND:Lnet/minecraft/component/type/AttributeModifierSlot;
-
OFFHAND
- Mappings:
Namespace Name Mixin selector official c
Lbrp;c:Lbrp;
intermediary field_49218
Lnet/minecraft/class_9274;field_49218:Lnet/minecraft/class_9274;
named OFFHAND
Lnet/minecraft/component/type/AttributeModifierSlot;OFFHAND:Lnet/minecraft/component/type/AttributeModifierSlot;
-
HAND
- Mappings:
Namespace Name Mixin selector official d
Lbrp;d:Lbrp;
intermediary field_49219
Lnet/minecraft/class_9274;field_49219:Lnet/minecraft/class_9274;
named HAND
Lnet/minecraft/component/type/AttributeModifierSlot;HAND:Lnet/minecraft/component/type/AttributeModifierSlot;
-
FEET
- Mappings:
Namespace Name Mixin selector official e
Lbrp;e:Lbrp;
intermediary field_49220
Lnet/minecraft/class_9274;field_49220:Lnet/minecraft/class_9274;
named FEET
Lnet/minecraft/component/type/AttributeModifierSlot;FEET:Lnet/minecraft/component/type/AttributeModifierSlot;
-
LEGS
- Mappings:
Namespace Name Mixin selector official f
Lbrp;f:Lbrp;
intermediary field_49221
Lnet/minecraft/class_9274;field_49221:Lnet/minecraft/class_9274;
named LEGS
Lnet/minecraft/component/type/AttributeModifierSlot;LEGS:Lnet/minecraft/component/type/AttributeModifierSlot;
-
CHEST
- Mappings:
Namespace Name Mixin selector official g
Lbrp;g:Lbrp;
intermediary field_49222
Lnet/minecraft/class_9274;field_49222:Lnet/minecraft/class_9274;
named CHEST
Lnet/minecraft/component/type/AttributeModifierSlot;CHEST:Lnet/minecraft/component/type/AttributeModifierSlot;
-
HEAD
- Mappings:
Namespace Name Mixin selector official h
Lbrp;h:Lbrp;
intermediary field_49223
Lnet/minecraft/class_9274;field_49223:Lnet/minecraft/class_9274;
named HEAD
Lnet/minecraft/component/type/AttributeModifierSlot;HEAD:Lnet/minecraft/component/type/AttributeModifierSlot;
-
ARMOR
- Mappings:
Namespace Name Mixin selector official i
Lbrp;i:Lbrp;
intermediary field_49224
Lnet/minecraft/class_9274;field_49224:Lnet/minecraft/class_9274;
named ARMOR
Lnet/minecraft/component/type/AttributeModifierSlot;ARMOR:Lnet/minecraft/component/type/AttributeModifierSlot;
-
-
Field Details
-
ID_TO_VALUE
- Mappings:
Namespace Name Mixin selector official j
Lbrp;j:Ljava/util/function/IntFunction;
intermediary field_49225
Lnet/minecraft/class_9274;field_49225:Ljava/util/function/IntFunction;
named ID_TO_VALUE
Lnet/minecraft/component/type/AttributeModifierSlot;ID_TO_VALUE:Ljava/util/function/IntFunction;
-
CODEC
- Mappings:
Namespace Name Mixin selector official k
Lbrp;k:Lcom/mojang/serialization/Codec;
intermediary field_49226
Lnet/minecraft/class_9274;field_49226:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/component/type/AttributeModifierSlot;CODEC:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector official l
Lbrp;l:Lys;
intermediary field_49227
Lnet/minecraft/class_9274;field_49227:Lnet/minecraft/class_9139;
named PACKET_CODEC
Lnet/minecraft/component/type/AttributeModifierSlot;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
-
id
private final int id- Mappings:
Namespace Name Mixin selector official m
Lbrp;m:I
intermediary field_49228
Lnet/minecraft/class_9274;field_49228:I
named id
Lnet/minecraft/component/type/AttributeModifierSlot;id:I
-
name
- Mappings:
Namespace Name Mixin selector official n
Lbrp;n:Ljava/lang/String;
intermediary field_49229
Lnet/minecraft/class_9274;field_49229:Ljava/lang/String;
named name
Lnet/minecraft/component/type/AttributeModifierSlot;name:Ljava/lang/String;
-
slotPredicate
- Mappings:
Namespace Name Mixin selector official o
Lbrp;o:Ljava/util/function/Predicate;
intermediary field_49230
Lnet/minecraft/class_9274;field_49230:Ljava/util/function/Predicate;
named slotPredicate
Lnet/minecraft/component/type/AttributeModifierSlot;slotPredicate:Ljava/util/function/Predicate;
-
-
Constructor Details
-
AttributeModifierSlot
- Mappings:
Namespace Name Mixin selector official <init>
Lbrp;<init>(Ljava/lang/String;IILjava/lang/String;Ljava/util/function/Predicate;)V
intermediary <init>
Lnet/minecraft/class_9274;<init>(Ljava/lang/String;IILjava/lang/String;Ljava/util/function/Predicate;)V
named <init>
Lnet/minecraft/component/type/AttributeModifierSlot;<init>(Ljava/lang/String;IILjava/lang/String;Ljava/util/function/Predicate;)V
-
AttributeModifierSlot
- Mappings:
Namespace Name Mixin selector official <init>
Lbrp;<init>(Ljava/lang/String;IILjava/lang/String;Lbro;)V
intermediary <init>
Lnet/minecraft/class_9274;<init>(Ljava/lang/String;IILjava/lang/String;Lnet/minecraft/class_1304;)V
named <init>
Lnet/minecraft/component/type/AttributeModifierSlot;<init>(Ljava/lang/String;IILjava/lang/String;Lnet/minecraft/entity/EquipmentSlot;)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
-
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;
-
matches
- Mappings:
Namespace Name Mixin selector official a
Lbrp;a(Lbro;)Z
intermediary method_57286
Lnet/minecraft/class_9274;method_57286(Lnet/minecraft/class_1304;)Z
named matches
Lnet/minecraft/component/type/AttributeModifierSlot;matches(Lnet/minecraft/entity/EquipmentSlot;)Z
-