Package net.minecraft.screen.sync
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/ComponentChangesHashintermediary net/minecraft/class_10936official wanamed addedComponentsintermediary comp_3874official bnamed removedComponentsintermediary comp_3875official c
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<ComponentType<?>, Integer> The field for theaddedComponentsrecord component.static final PacketCodec<RegistryByteBuf, ComponentChangesHash> private final Set<ComponentType<?>> The field for theremovedComponentsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionComponentChangesHash(Map<ComponentType<?>, Integer> map, Set<ComponentType<?>> set) -
Method Summary
Modifier and TypeMethodDescriptionMap<ComponentType<?>, Integer> Returns the value of theaddedComponentsrecord component.final booleanIndicates whether some other object is "equal to" this one.static ComponentChangesHashfromComponents(ComponentChanges changes, ComponentChangesHash.ComponentHasher hasher) final inthashCode()Returns a hash code value for this object.booleanhashEquals(ComponentChanges changes, ComponentChangesHash.ComponentHasher hasher) Set<ComponentType<?>> Returns the value of theremovedComponentsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
addedComponents
The field for theaddedComponentsrecord component. -
removedComponents
The field for theremovedComponentsrecord component. -
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/screen/sync/ComponentChangesHash;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_58175Lnet/minecraft/class_10936;field_58175:Lnet/minecraft/class_9139;official aLwa;a:Lze;
-
-
Constructor Details
-
ComponentChangesHash
-
-
Method Details
-
fromComponents
public static ComponentChangesHash fromComponents(ComponentChanges changes, ComponentChangesHash.ComponentHasher hasher) - Mappings:
Namespace Name Mixin selector named fromComponentsLnet/minecraft/screen/sync/ComponentChangesHash;fromComponents(Lnet/minecraft/component/ComponentChanges;Lnet/minecraft/screen/sync/ComponentChangesHash$ComponentHasher;)Lnet/minecraft/screen/sync/ComponentChangesHash;intermediary method_68848Lnet/minecraft/class_10936;method_68848(Lnet/minecraft/class_9326;Lnet/minecraft/class_10936$class_10937;)Lnet/minecraft/class_10936;official aLwa;a(Lkj;Lwa$a;)Lwa;
-
hashEquals
- Mappings:
Namespace Name Mixin selector named hashEqualsLnet/minecraft/screen/sync/ComponentChangesHash;hashEquals(Lnet/minecraft/component/ComponentChanges;Lnet/minecraft/screen/sync/ComponentChangesHash$ComponentHasher;)Zintermediary method_68849Lnet/minecraft/class_10936;method_68849(Lnet/minecraft/class_9326;Lnet/minecraft/class_10936$class_10937;)Zofficial bLwa;b(Lkj;Lwa$a;)Z
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
addedComponents
Returns the value of theaddedComponentsrecord component.- Returns:
- the value of the
addedComponentsrecord component
-
removedComponents
Returns the value of theremovedComponentsrecord component.- Returns:
- the value of the
removedComponentsrecord component
-