net.minecraft.core.component

public final class DataComponentPatch

kj
net.minecraft.core.component.DataComponentPatch
net.minecraft.class_9326
net.minecraft.component.ComponentChanges
net.minecraft.core.component.DataComponentPatch

Field summary

Modifier and TypeField
public static final DataComponentPatch
a
EMPTY
field_49588
EMPTY
public static final com.mojang.serialization.Codec<DataComponentPatch>
b
CODEC
field_49589
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, DataComponentPatch>
c
STREAM_CODEC
field_49590
PACKET_CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, DataComponentPatch>
d
DELIMITED_STREAM_CODEC
field_58172
LENGTH_PREPENDED_PACKET_CODEC
private static final String
f
REMOVED_PREFIX
field_49592
REMOVE_PREFIX
final it.unimi.dsi.fastutil.objects.Reference2ObjectMap<DataComponentType<?>, Optional<?>>
e
map
field_49591
changedComponents

Constructor summary

ModifierConstructor
(it.unimi.dsi.fastutil.objects.Reference2ObjectMap<DataComponentType<?>, Optional<?>> changedComponents)

Method summary

Modifier and TypeMethod
private static StreamCodec<RegistryFriendlyByteBuf, DataComponentPatch>
a(kj$b arg0)
createStreamCodec(DataComponentPatch$CodecGetter arg0)
method_68840(class_9326$class_10935 arg0)
createPacketCodec(ComponentChanges$PacketCodecFunction packetCodecFunction)
public static DataComponentPatch$Builder
a()
builder()
method_57841()
builder()
public <T> Optional<? extends T>
a(kk<? extends T> arg0)
get(DataComponentType<? extends T> arg0)
method_57845(class_9331<? extends T> arg0)
get(ComponentType<? extends T> type)
public Set<Map$Entry<DataComponentType<?>, Optional<?>>>
b()
entrySet()
method_57846()
entrySet()
public int
c()
size()
method_57847()
size()
public DataComponentPatch
a(Predicate<kk<?>> arg0)
forget(Predicate<DataComponentType<?>> arg0)
method_58757(Predicate<class_9331<?>> arg0)
withRemovedIf(Predicate<ComponentType<?>> removedTypePredicate)
public boolean
d()
isEmpty()
method_57848()
isEmpty()
public DataComponentPatch$SplitResult
e()
split()
method_58759()
toAddedRemovedPair()
static String
a(it.unimi.dsi.fastutil.objects.Reference2ObjectMap<kk<?>, Optional<?>> arg0)
toString(it.unimi.dsi.fastutil.objects.Reference2ObjectMap<DataComponentType<?>, Optional<?>> arg0)
method_57842(it.unimi.dsi.fastutil.objects.Reference2ObjectMap<class_9331<?>, Optional<?>> arg0)
toString(it.unimi.dsi.fastutil.objects.Reference2ObjectMap<ComponentType<?>, Optional<?>> changes)