Package net.minecraft

Record Class class_11885

java.lang.Object
java.lang.Record
net.minecraft.class_11885
Record Components:
player -
hat -
All Implemented Interfaces:
Contents

public record class_11885(ProfileComponent player, boolean hat) extends Record implements Contents
Mappings:
Namespace Name
named net/minecraft/class_11885
intermediary net/minecraft/class_11885
official zp
named player
intermediary comp_4763
official b
named hat
intermediary comp_4764
official c
  • Field Details

    • player

      private final ProfileComponent player
      The field for the player record component.
    • hat

      private final boolean hat
      The field for the hat record component.
    • field_62500

      public static final com.mojang.serialization.MapCodec<class_11885> field_62500
      Mappings:
      Namespace Name Mixin selector
      named field_62500 Lnet/minecraft/class_11885;field_62500:Lcom/mojang/serialization/MapCodec;
      intermediary field_62500 Lnet/minecraft/class_11885;field_62500:Lcom/mojang/serialization/MapCodec;
      official a Lzp;a:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

    • class_11885

      public class_11885(ProfileComponent profileComponent, boolean bool)
  • Method Details

    • method_74068

      public StyleSpriteSource method_74068()
      Specified by:
      method_74068 in interface Contents
      Mappings:
      Namespace Name Mixin selector
      named method_74068 Lnet/minecraft/text/Contents;method_74068()Lnet/minecraft/text/StyleSpriteSource;
      intermediary method_74068 Lnet/minecraft/class_11724;method_74068()Lnet/minecraft/class_11719;
      official b Lzn;b()Lya;
    • asText

      public String asText()
      Specified by:
      asText in interface Contents
      Mappings:
      Namespace Name Mixin selector
      named asText Lnet/minecraft/text/Contents;asText()Ljava/lang/String;
      intermediary method_73178 Lnet/minecraft/class_11724;method_73178()Ljava/lang/String;
      official c Lzn;c()Ljava/lang/String;
    • method_74067

      public com.mojang.serialization.MapCodec<class_11885> method_74067()
      Specified by:
      method_74067 in interface Contents
      Mappings:
      Namespace Name Mixin selector
      named method_74067 Lnet/minecraft/text/Contents;method_74067()Lcom/mojang/serialization/MapCodec;
      intermediary method_74067 Lnet/minecraft/class_11724;method_74067()Lcom/mojang/serialization/MapCodec;
      official a Lzn;a()Lcom/mojang/serialization/MapCodec;
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • player

      public ProfileComponent player()
      Returns the value of the player record component.
      Returns:
      the value of the player record component
    • hat

      public boolean hat()
      Returns the value of the hat record component.
      Returns:
      the value of the hat record component