net.minecraft.core.component

public final class DataComponentPatch

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

Field summary

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

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()
m_322543_()
public <T> Optional<? extends T>
a(kl<? extends T> arg0)
get(DataComponentType<? extends T> arg0)
method_57845(class_9331<? extends T> arg0)
get(DataComponentType<? extends T> type)
m_319281_(C_313543_<? extends T> arg0)
public Set<Map$Entry<DataComponentType<?>, Optional<?>>>
b()
entrySet()
method_57846()
entrySet()
m_320936_()
public int
c()
size()
method_57847()
size()
m_325008_()
public DataComponentPatch
a(Predicate<kl<?>> arg0)
forget(Predicate<DataComponentType<?>> arg0)
method_58757(Predicate<class_9331<?>> arg0)
withRemovedIf(Predicate<DataComponentType<?>> removedTypePredicate)
m_318691_(Predicate<C_313543_<?>> arg0)
public boolean
d()
isEmpty()
method_57848()
isEmpty()
m_323586_()
public DataComponentPatch$SplitResult
e()
split()
method_58759()
toAddedRemovedPair()
m_324808_()
static String
a(it.unimi.dsi.fastutil.objects.Reference2ObjectMap<kl<?>, 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<DataComponentType<?>, Optional<?>> changes)
m_318799_(it.unimi.dsi.fastutil.objects.Reference2ObjectMap<C_313543_<?>, Optional<?>> p_335670_)