Package net.minecraft

Record Class class_8387

java.lang.Object
java.lang.Record
net.minecraft.class_8387
Record Components:
approved -
pending -
votes -
totalProposalCount -

public record class_8387(List<class_8291> approved, Map<UUID,class_8376> pending, class_8374 votes, int totalProposalCount) extends Record
Mappings:
Namespace Name
official bgt
intermediary net/minecraft/class_8387
named net/minecraft/class_8387
official b
intermediary comp_1411
named approved
official c
intermediary comp_1412
named pending
official d
intermediary comp_1413
named votes
official e
intermediary comp_1414
named totalProposalCount
  • Field Details

    • approved

      private final List<class_8291> approved
      The field for the approved record component.
    • pending

      private final Map<UUID,class_8376> pending
      The field for the pending record component.
    • votes

      private final class_8374 votes
      The field for the votes record component.
    • totalProposalCount

      private final int totalProposalCount
      The field for the totalProposalCount record component.
    • field_44024

      public static final com.mojang.serialization.Codec<class_8387> field_44024
      Mappings:
      Namespace Name Mixin selector
      official a Lbgt;a:Lcom/mojang/serialization/Codec;
      intermediary field_44024 Lnet/minecraft/class_8387;field_44024:Lcom/mojang/serialization/Codec;
      named field_44024 Lnet/minecraft/class_8387;field_44024:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • method_50580

      public static class_8387 method_50580(Stream<RegistryEntry.Reference<class_8289>> stream, Map<UUID,class_8376> map, class_8374 class_8374, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgt;a(Ljava/util/stream/Stream;Ljava/util/Map;Lbgn;I)Lbgt;
      intermediary method_50580 Lnet/minecraft/class_8387;method_50580(Ljava/util/stream/Stream;Ljava/util/Map;Lnet/minecraft/class_8374;I)Lnet/minecraft/class_8387;
      named method_50580 Lnet/minecraft/class_8387;method_50580(Ljava/util/stream/Stream;Ljava/util/Map;Lnet/minecraft/class_8374;I)Lnet/minecraft/class_8387;
    • 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.
    • approved

      public List<class_8291> approved()
      Returns the value of the approved record component.
      Returns:
      the value of the approved record component
    • pending

      public Map<UUID,class_8376> pending()
      Returns the value of the pending record component.
      Returns:
      the value of the pending record component
    • votes

      public class_8374 votes()
      Returns the value of the votes record component.
      Returns:
      the value of the votes record component
    • totalProposalCount

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