Enum Class AttributeModifierSlot

java.lang.Object
java.lang.Enum<AttributeModifierSlot>
net.minecraft.component.type.AttributeModifierSlot
All Implemented Interfaces:
Serializable, Comparable<AttributeModifierSlot>, Constable, StringIdentifiable

public enum AttributeModifierSlot extends Enum<AttributeModifierSlot> implements StringIdentifiable
Mappings:
Namespace Name
named net/minecraft/component/type/AttributeModifierSlot
intermediary net/minecraft/class_9274
official bvs
  • Enum Constant Details

    • ANY

      public static final AttributeModifierSlot ANY
      Mappings:
      Namespace Name Mixin selector
      named ANY Lnet/minecraft/component/type/AttributeModifierSlot;ANY:Lnet/minecraft/component/type/AttributeModifierSlot;
      intermediary field_49216 Lnet/minecraft/class_9274;field_49216:Lnet/minecraft/class_9274;
      official a Lbvs;a:Lbvs;
    • MAINHAND

      public static final AttributeModifierSlot MAINHAND
      Mappings:
      Namespace Name Mixin selector
      named MAINHAND Lnet/minecraft/component/type/AttributeModifierSlot;MAINHAND:Lnet/minecraft/component/type/AttributeModifierSlot;
      intermediary field_49217 Lnet/minecraft/class_9274;field_49217:Lnet/minecraft/class_9274;
      official b Lbvs;b:Lbvs;
    • OFFHAND

      public static final AttributeModifierSlot OFFHAND
      Mappings:
      Namespace Name Mixin selector
      named OFFHAND Lnet/minecraft/component/type/AttributeModifierSlot;OFFHAND:Lnet/minecraft/component/type/AttributeModifierSlot;
      intermediary field_49218 Lnet/minecraft/class_9274;field_49218:Lnet/minecraft/class_9274;
      official c Lbvs;c:Lbvs;
    • HAND

      public static final AttributeModifierSlot HAND
      Mappings:
      Namespace Name Mixin selector
      named HAND Lnet/minecraft/component/type/AttributeModifierSlot;HAND:Lnet/minecraft/component/type/AttributeModifierSlot;
      intermediary field_49219 Lnet/minecraft/class_9274;field_49219:Lnet/minecraft/class_9274;
      official d Lbvs;d:Lbvs;
    • FEET

      public static final AttributeModifierSlot FEET
      Mappings:
      Namespace Name Mixin selector
      named FEET Lnet/minecraft/component/type/AttributeModifierSlot;FEET:Lnet/minecraft/component/type/AttributeModifierSlot;
      intermediary field_49220 Lnet/minecraft/class_9274;field_49220:Lnet/minecraft/class_9274;
      official e Lbvs;e:Lbvs;
    • LEGS

      public static final AttributeModifierSlot LEGS
      Mappings:
      Namespace Name Mixin selector
      named LEGS Lnet/minecraft/component/type/AttributeModifierSlot;LEGS:Lnet/minecraft/component/type/AttributeModifierSlot;
      intermediary field_49221 Lnet/minecraft/class_9274;field_49221:Lnet/minecraft/class_9274;
      official f Lbvs;f:Lbvs;
    • CHEST

      public static final AttributeModifierSlot CHEST
      Mappings:
      Namespace Name Mixin selector
      named CHEST Lnet/minecraft/component/type/AttributeModifierSlot;CHEST:Lnet/minecraft/component/type/AttributeModifierSlot;
      intermediary field_49222 Lnet/minecraft/class_9274;field_49222:Lnet/minecraft/class_9274;
      official g Lbvs;g:Lbvs;
    • ARMOR

      public static final AttributeModifierSlot ARMOR
      Mappings:
      Namespace Name Mixin selector
      named ARMOR Lnet/minecraft/component/type/AttributeModifierSlot;ARMOR:Lnet/minecraft/component/type/AttributeModifierSlot;
      intermediary field_49224 Lnet/minecraft/class_9274;field_49224:Lnet/minecraft/class_9274;
      official i Lbvs;i:Lbvs;
    • BODY

      public static final AttributeModifierSlot BODY
      Mappings:
      Namespace Name Mixin selector
      named BODY Lnet/minecraft/component/type/AttributeModifierSlot;BODY:Lnet/minecraft/component/type/AttributeModifierSlot;
      intermediary field_50127 Lnet/minecraft/class_9274;field_50127:Lnet/minecraft/class_9274;
      official j Lbvs;j:Lbvs;
  • Field Details

    • ID_TO_VALUE

      public static final IntFunction<AttributeModifierSlot> ID_TO_VALUE
      Mappings:
      Namespace Name Mixin selector
      named ID_TO_VALUE Lnet/minecraft/component/type/AttributeModifierSlot;ID_TO_VALUE:Ljava/util/function/IntFunction;
      intermediary field_49225 Lnet/minecraft/class_9274;field_49225:Ljava/util/function/IntFunction;
      official k Lbvs;k:Ljava/util/function/IntFunction;
    • CODEC

      public static final com.mojang.serialization.Codec<AttributeModifierSlot> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/component/type/AttributeModifierSlot;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_49226 Lnet/minecraft/class_9274;field_49226:Lcom/mojang/serialization/Codec;
      official l Lbvs;l:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC

      public static final PacketCodec<ByteBuf,AttributeModifierSlot> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/component/type/AttributeModifierSlot;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_49227 Lnet/minecraft/class_9274;field_49227:Lnet/minecraft/class_9139;
      official m Lbvs;m:Lzt;
    • id

      private final int id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/component/type/AttributeModifierSlot;id:I
      intermediary field_49228 Lnet/minecraft/class_9274;field_49228:I
      official n Lbvs;n:I
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/component/type/AttributeModifierSlot;name:Ljava/lang/String;
      intermediary field_49229 Lnet/minecraft/class_9274;field_49229:Ljava/lang/String;
      official o Lbvs;o:Ljava/lang/String;
    • slotPredicate

      private final Predicate<EquipmentSlot> slotPredicate
      Mappings:
      Namespace Name Mixin selector
      named slotPredicate Lnet/minecraft/component/type/AttributeModifierSlot;slotPredicate:Ljava/util/function/Predicate;
      intermediary field_49230 Lnet/minecraft/class_9274;field_49230:Ljava/util/function/Predicate;
      official p Lbvs;p:Ljava/util/function/Predicate;
  • Constructor Details

    • AttributeModifierSlot

      private AttributeModifierSlot(int id, String name, Predicate<EquipmentSlot> slotPredicate)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/component/type/AttributeModifierSlot;<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
      official <init> Lbvs;<init>(Ljava/lang/String;IILjava/lang/String;Ljava/util/function/Predicate;)V
    • AttributeModifierSlot

      private AttributeModifierSlot(int id, String name, EquipmentSlot slot)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/component/type/AttributeModifierSlot;<init>(Ljava/lang/String;IILjava/lang/String;Lnet/minecraft/entity/EquipmentSlot;)V
      intermediary <init> Lnet/minecraft/class_9274;<init>(Ljava/lang/String;IILjava/lang/String;Lnet/minecraft/class_1304;)V
      official <init> Lbvs;<init>(Ljava/lang/String;IILjava/lang/String;Lbvr;)V
  • Method Details

    • values

      public static AttributeModifierSlot[] 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

      public static AttributeModifierSlot valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • forEquipmentSlot

      public static AttributeModifierSlot forEquipmentSlot(EquipmentSlot slot)
      Mappings:
      Namespace Name Mixin selector
      named forEquipmentSlot Lnet/minecraft/component/type/AttributeModifierSlot;forEquipmentSlot(Lnet/minecraft/entity/EquipmentSlot;)Lnet/minecraft/component/type/AttributeModifierSlot;
      intermediary method_59524 Lnet/minecraft/class_9274;method_59524(Lnet/minecraft/class_1304;)Lnet/minecraft/class_9274;
      official a Lbvs;a(Lbvr;)Lbvs;
    • asString

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      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 Lbba;c()Ljava/lang/String;
    • matches

      public boolean matches(EquipmentSlot slot)
      Mappings:
      Namespace Name Mixin selector
      named matches Lnet/minecraft/component/type/AttributeModifierSlot;matches(Lnet/minecraft/entity/EquipmentSlot;)Z
      intermediary method_57286 Lnet/minecraft/class_9274;method_57286(Lnet/minecraft/class_1304;)Z
      official b Lbvs;b(Lbvr;)Z