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/ComponentChangesHash
intermediary net/minecraft/class_10936
official wa
named addedComponents
intermediary comp_3874
official b
named removedComponents
intermediary comp_3875
official c
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map
<ComponentType<?>, Integer> The field for theaddedComponents
record component.static final PacketCodec
<RegistryByteBuf, ComponentChangesHash> private final Set
<ComponentType<?>> The field for theremovedComponents
record component. -
Constructor Summary
ConstructorsConstructorDescriptionComponentChangesHash
(Map<ComponentType<?>, Integer> map, Set<ComponentType<?>> set) -
Method Summary
Modifier and TypeMethodDescriptionMap
<ComponentType<?>, Integer> Returns the value of theaddedComponents
record component.final boolean
Indicates whether some other object is "equal to" this one.static ComponentChangesHash
fromComponents
(ComponentChanges changes, ComponentChangesHash.ComponentHasher hasher) final int
hashCode()
Returns a hash code value for this object.boolean
hashEquals
(ComponentChanges changes, ComponentChangesHash.ComponentHasher hasher) Set
<ComponentType<?>> Returns the value of theremovedComponents
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
addedComponents
The field for theaddedComponents
record component. -
removedComponents
The field for theremovedComponents
record component. -
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
-
Method Details
-
fromComponents
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
- 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
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 theaddedComponents
record component.- Returns:
- the value of the
addedComponents
record component
-
removedComponents
Returns the value of theremovedComponents
record component.- Returns:
- the value of the
removedComponents
record component
-