Package net.minecraft.component.type
Enum Class AttributeModifierSlot
- All Implemented Interfaces:
Serializable,Comparable<AttributeModifierSlot>,Constable,Iterable<EquipmentSlot>,StringIdentifiable
public enum AttributeModifierSlot
extends Enum<AttributeModifierSlot>
implements StringIdentifiable, Iterable<EquipmentSlot>
- Mappings:
Namespace Name named net/minecraft/component/type/AttributeModifierSlotintermediary net/minecraft/class_9274official cfr
-
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 intstatic final IntFunction<AttributeModifierSlot> private final Stringstatic final PacketCodec<ByteBuf, AttributeModifierSlot> private final Predicate<EquipmentSlot> private final List<EquipmentSlot> Fields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateAttributeModifierSlot(int id, String name, Predicate<EquipmentSlot> slotPredicate) privateAttributeModifierSlot(int id, String name, EquipmentSlot slot) -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.static AttributeModifierSlotgetSlots()iterator()booleanmatches(EquipmentSlot slot) static AttributeModifierSlotReturns 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.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Enum Constant Details
-
ANY
- Mappings:
Namespace Name Mixin selector named ANYLnet/minecraft/component/type/AttributeModifierSlot;ANY:Lnet/minecraft/component/type/AttributeModifierSlot;intermediary field_49216Lnet/minecraft/class_9274;field_49216:Lnet/minecraft/class_9274;official aLcfr;a:Lcfr;
-
MAINHAND
- Mappings:
Namespace Name Mixin selector named MAINHANDLnet/minecraft/component/type/AttributeModifierSlot;MAINHAND:Lnet/minecraft/component/type/AttributeModifierSlot;intermediary field_49217Lnet/minecraft/class_9274;field_49217:Lnet/minecraft/class_9274;official bLcfr;b:Lcfr;
-
OFFHAND
- Mappings:
Namespace Name Mixin selector named OFFHANDLnet/minecraft/component/type/AttributeModifierSlot;OFFHAND:Lnet/minecraft/component/type/AttributeModifierSlot;intermediary field_49218Lnet/minecraft/class_9274;field_49218:Lnet/minecraft/class_9274;official cLcfr;c:Lcfr;
-
HAND
- Mappings:
Namespace Name Mixin selector named HANDLnet/minecraft/component/type/AttributeModifierSlot;HAND:Lnet/minecraft/component/type/AttributeModifierSlot;intermediary field_49219Lnet/minecraft/class_9274;field_49219:Lnet/minecraft/class_9274;official dLcfr;d:Lcfr;
-
FEET
- Mappings:
Namespace Name Mixin selector named FEETLnet/minecraft/component/type/AttributeModifierSlot;FEET:Lnet/minecraft/component/type/AttributeModifierSlot;intermediary field_49220Lnet/minecraft/class_9274;field_49220:Lnet/minecraft/class_9274;official eLcfr;e:Lcfr;
-
LEGS
- Mappings:
Namespace Name Mixin selector named LEGSLnet/minecraft/component/type/AttributeModifierSlot;LEGS:Lnet/minecraft/component/type/AttributeModifierSlot;intermediary field_49221Lnet/minecraft/class_9274;field_49221:Lnet/minecraft/class_9274;official fLcfr;f:Lcfr;
-
CHEST
- Mappings:
Namespace Name Mixin selector named CHESTLnet/minecraft/component/type/AttributeModifierSlot;CHEST:Lnet/minecraft/component/type/AttributeModifierSlot;intermediary field_49222Lnet/minecraft/class_9274;field_49222:Lnet/minecraft/class_9274;official gLcfr;g:Lcfr;
-
HEAD
- Mappings:
Namespace Name Mixin selector named HEADLnet/minecraft/component/type/AttributeModifierSlot;HEAD:Lnet/minecraft/component/type/AttributeModifierSlot;intermediary field_49223Lnet/minecraft/class_9274;field_49223:Lnet/minecraft/class_9274;official hLcfr;h:Lcfr;
-
ARMOR
- Mappings:
Namespace Name Mixin selector named ARMORLnet/minecraft/component/type/AttributeModifierSlot;ARMOR:Lnet/minecraft/component/type/AttributeModifierSlot;intermediary field_49224Lnet/minecraft/class_9274;field_49224:Lnet/minecraft/class_9274;official iLcfr;i:Lcfr;
-
BODY
- Mappings:
Namespace Name Mixin selector named BODYLnet/minecraft/component/type/AttributeModifierSlot;BODY:Lnet/minecraft/component/type/AttributeModifierSlot;intermediary field_50127Lnet/minecraft/class_9274;field_50127:Lnet/minecraft/class_9274;official jLcfr;j:Lcfr;
-
SADDLE
- Mappings:
Namespace Name Mixin selector named SADDLELnet/minecraft/component/type/AttributeModifierSlot;SADDLE:Lnet/minecraft/component/type/AttributeModifierSlot;intermediary field_55948Lnet/minecraft/class_9274;field_55948:Lnet/minecraft/class_9274;official kLcfr;k:Lcfr;
-
-
Field Details
-
ID_TO_VALUE
- Mappings:
Namespace Name Mixin selector named ID_TO_VALUELnet/minecraft/component/type/AttributeModifierSlot;ID_TO_VALUE:Ljava/util/function/IntFunction;intermediary field_49225Lnet/minecraft/class_9274;field_49225:Ljava/util/function/IntFunction;official lLcfr;l:Ljava/util/function/IntFunction;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/component/type/AttributeModifierSlot;CODEC:Lcom/mojang/serialization/Codec;intermediary field_49226Lnet/minecraft/class_9274;field_49226:Lcom/mojang/serialization/Codec;official mLcfr;m:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/component/type/AttributeModifierSlot;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_49227Lnet/minecraft/class_9274;field_49227:Lnet/minecraft/class_9139;official nLcfr;n:Laat;
-
id
private final int id- Mappings:
Namespace Name Mixin selector named idLnet/minecraft/component/type/AttributeModifierSlot;id:Iintermediary field_49228Lnet/minecraft/class_9274;field_49228:Iofficial oLcfr;o:I
-
name
- Mappings:
Namespace Name Mixin selector named nameLnet/minecraft/component/type/AttributeModifierSlot;name:Ljava/lang/String;intermediary field_49229Lnet/minecraft/class_9274;field_49229:Ljava/lang/String;official pLcfr;p:Ljava/lang/String;
-
slotPredicate
- Mappings:
Namespace Name Mixin selector named slotPredicateLnet/minecraft/component/type/AttributeModifierSlot;slotPredicate:Ljava/util/function/Predicate;intermediary field_49230Lnet/minecraft/class_9274;field_49230:Ljava/util/function/Predicate;official qLcfr;q:Ljava/util/function/Predicate;
-
slots
- Mappings:
Namespace Name Mixin selector named slotsLnet/minecraft/component/type/AttributeModifierSlot;slots:Ljava/util/List;intermediary field_55949Lnet/minecraft/class_9274;field_55949:Ljava/util/List;official rLcfr;r:Ljava/util/List;
-
-
Constructor Details
-
AttributeModifierSlot
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/component/type/AttributeModifierSlot;<init>(Ljava/lang/String;IILjava/lang/String;Ljava/util/function/Predicate;)Vintermediary <init>Lnet/minecraft/class_9274;<init>(Ljava/lang/String;IILjava/lang/String;Ljava/util/function/Predicate;)Vofficial <init>Lcfr;<init>(Ljava/lang/String;IILjava/lang/String;Ljava/util/function/Predicate;)V
-
AttributeModifierSlot
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/component/type/AttributeModifierSlot;<init>(Ljava/lang/String;IILjava/lang/String;Lnet/minecraft/entity/EquipmentSlot;)Vintermediary <init>Lnet/minecraft/class_9274;<init>(Ljava/lang/String;IILjava/lang/String;Lnet/minecraft/class_1304;)Vofficial <init>Lcfr;<init>(Ljava/lang/String;IILjava/lang/String;Lcfq;)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
-
forEquipmentSlot
- Mappings:
Namespace Name Mixin selector named forEquipmentSlotLnet/minecraft/component/type/AttributeModifierSlot;forEquipmentSlot(Lnet/minecraft/entity/EquipmentSlot;)Lnet/minecraft/component/type/AttributeModifierSlot;intermediary method_59524Lnet/minecraft/class_9274;method_59524(Lnet/minecraft/class_1304;)Lnet/minecraft/class_9274;official aLcfr;a(Lcfq;)Lcfr;
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asStringin interfaceStringIdentifiable- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;official cLbhi;c()Ljava/lang/String;
-
matches
- Mappings:
Namespace Name Mixin selector named matchesLnet/minecraft/component/type/AttributeModifierSlot;matches(Lnet/minecraft/entity/EquipmentSlot;)Zintermediary method_57286Lnet/minecraft/class_9274;method_57286(Lnet/minecraft/class_1304;)Zofficial bLcfr;b(Lcfq;)Z
-
getSlots
- Mappings:
Namespace Name Mixin selector named getSlotsLnet/minecraft/component/type/AttributeModifierSlot;getSlots()Ljava/util/List;intermediary method_66665Lnet/minecraft/class_9274;method_66665()Ljava/util/List;official aLcfr;a()Ljava/util/List;
-
iterator
- Specified by:
iteratorin interfaceIterable<EquipmentSlot>
-