Record Class AttributeModifiersComponent.class_11193.class_11196

java.lang.Object
java.lang.Record
net.minecraft.component.type.AttributeModifiersComponent.class_11193.class_11196
Record Components:
component -
All Implemented Interfaces:
AttributeModifiersComponent.class_11193
Enclosing interface:
AttributeModifiersComponent.class_11193

public static record AttributeModifiersComponent.class_11193.class_11196(Text component) extends Record implements AttributeModifiersComponent.class_11193
Mappings:
Namespace Name
named net/minecraft/component/type/AttributeModifiersComponent$class_11193$class_11196
intermediary net/minecraft/class_9285$class_11193$class_11196
official ddn$b$c
named component
intermediary comp_4035
official c
  • Field Details

    • component

      private final Text component
      The field for the component record component.
    • field_59737

      static final com.mojang.serialization.MapCodec<AttributeModifiersComponent.class_11193.class_11196> field_59737
      Mappings:
      Namespace Name Mixin selector
      named field_59737 Lnet/minecraft/component/type/AttributeModifiersComponent$class_11193$class_11196;field_59737:Lcom/mojang/serialization/MapCodec;
      intermediary field_59737 Lnet/minecraft/class_9285$class_11193$class_11196;field_59737:Lcom/mojang/serialization/MapCodec;
      official d Lddn$b$c;d:Lcom/mojang/serialization/MapCodec;
    • field_59738

      Mappings:
      Namespace Name Mixin selector
      named field_59738 Lnet/minecraft/component/type/AttributeModifiersComponent$class_11193$class_11196;field_59738:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_59738 Lnet/minecraft/class_9285$class_11193$class_11196;field_59738:Lnet/minecraft/class_9139;
      official e Lddn$b$c;e:Lzg;
  • Constructor Details

    • class_11196

      public class_11196(Text text)
  • Method Details

    • method_70734

      Specified by:
      method_70734 in interface AttributeModifiersComponent.class_11193
      Mappings:
      Namespace Name Mixin selector
      named method_70734 Lnet/minecraft/component/type/AttributeModifiersComponent$class_11193;method_70734()Lnet/minecraft/component/type/AttributeModifiersComponent$class_11193$class_11197;
      intermediary method_70734 Lnet/minecraft/class_9285$class_11193;method_70734()Lnet/minecraft/class_9285$class_11193$class_11197;
      official c Lddn$b;c()Lddn$b$d;
    • method_70731

      public void method_70731(Consumer<Text> consumer, @Nullable @Nullable PlayerEntity playerEntity, RegistryEntry<EntityAttribute> registryEntry, EntityAttributeModifier entityAttributeModifier)
      Specified by:
      method_70731 in interface AttributeModifiersComponent.class_11193
      Mappings:
      Namespace Name Mixin selector
      named method_70731 Lnet/minecraft/component/type/AttributeModifiersComponent$class_11193;method_70731(Ljava/util/function/Consumer;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/entity/attribute/EntityAttributeModifier;)V
      intermediary method_70731 Lnet/minecraft/class_9285$class_11193;method_70731(Ljava/util/function/Consumer;Lnet/minecraft/class_1657;Lnet/minecraft/class_6880;Lnet/minecraft/class_1322;)V
      official a Lddn$b;a(Ljava/util/function/Consumer;Lcsu;Lji;Lbzr;)V
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • component

      public Text component()
      Returns the value of the component record component.
      Returns:
      the value of the component record component