Package net.minecraft

Record Class class_8388

java.lang.Object
java.lang.Record
net.minecraft.class_8388
Record Components:
displayName -
voteCount -

public record class_8388(Text displayName, int voteCount) extends Record
Mappings:
Namespace Name
official bgu
intermediary net/minecraft/class_8388
named net/minecraft/class_8388
official e
intermediary comp_1415
named displayName
official f
intermediary comp_1416
named voteCount
  • Field Details

    • displayName

      private final Text displayName
      The field for the displayName record component.
    • voteCount

      private final int voteCount
      The field for the voteCount record component.
    • field_44025

      public static final Comparator<class_8388> field_44025
      Mappings:
      Namespace Name Mixin selector
      official a Lbgu;a:Ljava/util/Comparator;
      intermediary field_44025 Lnet/minecraft/class_8388;field_44025:Ljava/util/Comparator;
      named field_44025 Lnet/minecraft/class_8388;field_44025:Ljava/util/Comparator;
    • field_44026

      public static final com.mojang.serialization.Codec<class_8388> field_44026
      Mappings:
      Namespace Name Mixin selector
      official b Lbgu;b:Lcom/mojang/serialization/Codec;
      intermediary field_44026 Lnet/minecraft/class_8388;field_44026:Lcom/mojang/serialization/Codec;
      named field_44026 Lnet/minecraft/class_8388;field_44026:Lcom/mojang/serialization/Codec;
    • field_44027

      public static final PacketByteBuf.PacketReader<class_8388> field_44027
      Mappings:
      Namespace Name Mixin selector
      official c Lbgu;c:Lsf$a;
      intermediary field_44027 Lnet/minecraft/class_8388;field_44027:Lnet/minecraft/class_2540$class_7461;
      named field_44027 Lnet/minecraft/class_8388;field_44027:Lnet/minecraft/network/PacketByteBuf$PacketReader;
    • field_44028

      public static final PacketByteBuf.PacketWriter<class_8388> field_44028
      Mappings:
      Namespace Name Mixin selector
      official d Lbgu;d:Lsf$b;
      intermediary field_44028 Lnet/minecraft/class_8388;field_44028:Lnet/minecraft/class_2540$class_7462;
      named field_44028 Lnet/minecraft/class_8388;field_44028:Lnet/minecraft/network/PacketByteBuf$PacketWriter;
  • Constructor Details

    • class_8388

      public class_8388(Text text, int int2)
  • Method Details

    • method_50581

      public static class_8388 method_50581(@Nullable @Nullable class_8388 class_8388, Text text, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgu;a(Lbgu;Lsw;I)Lbgu;
      intermediary method_50581 Lnet/minecraft/class_8388;method_50581(Lnet/minecraft/class_8388;Lnet/minecraft/class_2561;I)Lnet/minecraft/class_8388;
      named method_50581 Lnet/minecraft/class_8388;method_50581(Lnet/minecraft/class_8388;Lnet/minecraft/text/Text;I)Lnet/minecraft/class_8388;
    • 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.
    • displayName

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

      public int voteCount()
      Returns the value of the voteCount record component.
      Returns:
      the value of the voteCount record component