net.minecraft.screen.sync

public record ComponentChangesHash

net.minecraft.network.HashedPatchMap
net.minecraft.class_10936
net.minecraft.screen.sync.ComponentChangesHash

Field summary

Modifier and TypeField
private final Map<ComponentType<?>, Integer>
addedComponents
comp_3874
addedComponents
private final Set<ComponentType<?>>
removedComponents
comp_3875
removedComponents
public static final PacketCodec<RegistryByteBuf, ComponentChangesHash>
STREAM_CODEC
field_58175
PACKET_CODEC

Constructor summary

ModifierConstructor
public (Map<ComponentType<?>, Integer> addedComponents, Set<ComponentType<?>> removedComponents)

Method summary

Modifier and TypeMethod
public static ComponentChangesHash
create(DataComponentPatch patch, HashedPatchMap$HashGenerator hasher)
method_68848(class_9326 arg0, class_10936$class_10937 arg1)
fromComponents(ComponentChanges changes, ComponentChangesHash$ComponentHasher hasher)
public boolean
matches(DataComponentPatch patch, HashedPatchMap$HashGenerator hasher)
method_68849(class_9326 arg0, class_10936$class_10937 arg1)
hashEquals(ComponentChanges changes, ComponentChangesHash$ComponentHasher hasher)
public Map<ComponentType<?>, Integer>
addedComponents()
comp_3874()
addedComponents()
public Set<ComponentType<?>>
removedComponents()
comp_3875()
removedComponents()
private static void
lambda$create$0(Map arg0, HashedPatchMap$HashGenerator arg1, TypedDataComponent arg2)
method_68847(Map arg0, class_10936$class_10937 arg1, class_9336 arg2)
method_68847(Map arg0, ComponentChangesHash$ComponentHasher arg1, Component component)