Record Class ComponentChangesHash

java.lang.Object
java.lang.Record
net.minecraft.screen.sync.ComponentChangesHash
Record Components:
addedComponents -
removedComponents -

public record ComponentChangesHash(Map<ComponentType<?>,Integer> addedComponents, Set<ComponentType<?>> removedComponents) extends Record
Mappings:
Namespace Name
named net/minecraft/screen/sync/ComponentChangesHash
intermediary net/minecraft/class_10936
official wa
named addedComponents
intermediary comp_3874
official b
named removedComponents
intermediary comp_3875
official c
  • Field Details Link icon

    • addedComponents Link icon

      private final Map<ComponentType<?>,Integer> addedComponents
      The field for the addedComponents record component.
    • removedComponents Link icon

      private final Set<ComponentType<?>> removedComponents
      The field for the removedComponents record component.
    • PACKET_CODEC Link icon

      public static final PacketCodec<RegistryByteBuf,ComponentChangesHash> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/screen/sync/ComponentChangesHash;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_58175 Lnet/minecraft/class_10936;field_58175:Lnet/minecraft/class_9139;
      official a Lwa;a:Lze;
  • Constructor Details Link icon

  • Method Details Link icon

    • fromComponents Link icon

      public static ComponentChangesHash fromComponents(ComponentChanges changes, ComponentChangesHash.ComponentHasher hasher)
      Mappings:
      Namespace Name Mixin selector
      named fromComponents Lnet/minecraft/screen/sync/ComponentChangesHash;fromComponents(Lnet/minecraft/component/ComponentChanges;Lnet/minecraft/screen/sync/ComponentChangesHash$ComponentHasher;)Lnet/minecraft/screen/sync/ComponentChangesHash;
      intermediary method_68848 Lnet/minecraft/class_10936;method_68848(Lnet/minecraft/class_9326;Lnet/minecraft/class_10936$class_10937;)Lnet/minecraft/class_10936;
      official a Lwa;a(Lkj;Lwa$a;)Lwa;
    • hashEquals Link icon

      public boolean hashEquals(ComponentChanges changes, ComponentChangesHash.ComponentHasher hasher)
      Mappings:
      Namespace Name Mixin selector
      named hashEquals Lnet/minecraft/screen/sync/ComponentChangesHash;hashEquals(Lnet/minecraft/component/ComponentChanges;Lnet/minecraft/screen/sync/ComponentChangesHash$ComponentHasher;)Z
      intermediary method_68849 Lnet/minecraft/class_10936;method_68849(Lnet/minecraft/class_9326;Lnet/minecraft/class_10936$class_10937;)Z
      official b Lwa;b(Lkj;Lwa$a;)Z
    • toString Link icon

      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 Link icon

      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 Link icon

      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.
    • addedComponents Link icon

      public Map<ComponentType<?>,Integer> addedComponents()
      Returns the value of the addedComponents record component.
      Returns:
      the value of the addedComponents record component
    • removedComponents Link icon

      public Set<ComponentType<?>> removedComponents()
      Returns the value of the removedComponents record component.
      Returns:
      the value of the removedComponents record component