Record Class AttributeModifiersComponent.Display.Hidden

java.lang.Object
java.lang.Record
net.minecraft.component.type.AttributeModifiersComponent.Display.Hidden
All Implemented Interfaces:
AttributeModifiersComponent.Display
Enclosing interface:
AttributeModifiersComponent.Display

public static record AttributeModifiersComponent.Display.Hidden() extends Record implements AttributeModifiersComponent.Display
Mappings:
Namespace Name
named net/minecraft/component/type/AttributeModifiersComponent$Display$Hidden
intermediary net/minecraft/class_9285$class_11193$class_11195
official dfm$b$b
  • Field Details

    • INSTANCE

      Mappings:
      Namespace Name Mixin selector
      named INSTANCE Lnet/minecraft/component/type/AttributeModifiersComponent$Display$Hidden;INSTANCE:Lnet/minecraft/component/type/AttributeModifiersComponent$Display$Hidden;
      intermediary field_59734 Lnet/minecraft/class_9285$class_11193$class_11195;field_59734:Lnet/minecraft/class_9285$class_11193$class_11195;
      official c Ldfm$b$b;c:Ldfm$b$b;
    • CODEC

      static final com.mojang.serialization.MapCodec<AttributeModifiersComponent.Display.Hidden> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/component/type/AttributeModifiersComponent$Display$Hidden;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_59735 Lnet/minecraft/class_9285$class_11193$class_11195;field_59735:Lcom/mojang/serialization/MapCodec;
      official d Ldfm$b$b;d:Lcom/mojang/serialization/MapCodec;
    • PACKET_CODEC

      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/component/type/AttributeModifiersComponent$Display$Hidden;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_59736 Lnet/minecraft/class_9285$class_11193$class_11195;field_59736:Lnet/minecraft/class_9139;
      official e Ldfm$b$b;e:Lzm;
  • Constructor Details

    • Hidden

      public Hidden()
      Creates an instance of a Hidden record class.
  • Method Details

    • getType

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

      public void addTooltip(Consumer<Text> textConsumer, @Nullable @Nullable PlayerEntity player, RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier)
      Specified by:
      addTooltip in interface AttributeModifiersComponent.Display
      Mappings:
      Namespace Name Mixin selector
      named addTooltip Lnet/minecraft/component/type/AttributeModifiersComponent$Display;addTooltip(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 Ldfm$b;a(Ljava/util/function/Consumer;Lcut;Ljl;Lcbq;)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.
      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.