net.minecraft.core.component

public final class DataComponentPatch

kr
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
private static final String
e
REMOVED_PREFIX
field_49592
REMOVE_PREFIX
final it.unimi.dsi.fastutil.objects.Reference2ObjectMap<DataComponentType<?>, Optional<?>>
d
map
field_49591
changedComponents

Constructor summary

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

Method summary

Modifier and TypeMethod
public static DataComponentPatch$Builder
a()
builder()
method_57841()
builder()
public <T> Optional<? extends T>
a(kt<? 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<kt<?>> 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<kt<?>, 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)