net.minecraft.core.component

public final class PatchedDataComponentMap

implements DataComponentMap

kw
net.minecraft.core.component.PatchedDataComponentMap
net.minecraft.class_9335
net.minecraft.component.MergedComponentMap
net.minecraft.core.component.PatchedDataComponentMap

Field summary

Modifier and TypeField
private final DataComponentMap
c
prototype
field_49654
baseComponents
private it.unimi.dsi.fastutil.objects.Reference2ObjectMap<DataComponentType<?>, Optional<?>>
d
patch
field_49655
changedComponents
private boolean
e
copyOnWrite
field_49656
copyOnWrite

Constructor summary

ModifierConstructor
public (DataComponentMap baseComponents)
private (DataComponentMap baseComponents, it.unimi.dsi.fastutil.objects.Reference2ObjectMap<DataComponentType<?>, Optional<?>> changedComponents, boolean copyOnWrite)

Method summary

Modifier and TypeMethod
public static PatchedDataComponentMap
a(kr arg0, ks arg1)
fromPatch(DataComponentMap arg0, DataComponentPatch arg1)
method_57935(class_9323 arg0, class_9326 arg1)
create(ComponentMap baseComponents, ComponentChanges changes)
private static boolean
a(kr arg0, it.unimi.dsi.fastutil.objects.Reference2ObjectMap<ku<?>, Optional<?>> arg1)
isPatchSanitized(DataComponentMap arg0, it.unimi.dsi.fastutil.objects.Reference2ObjectMap<DataComponentType<?>, Optional<?>> arg1)
method_57934(class_9323 arg0, it.unimi.dsi.fastutil.objects.Reference2ObjectMap<class_9331<?>, Optional<?>> arg1)
shouldReuseChangesMap(ComponentMap baseComponents, it.unimi.dsi.fastutil.objects.Reference2ObjectMap<ComponentType<?>, Optional<?>> changedComponents)
public <T> T
a(ku<? extends T> arg0)
get(DataComponentType<? extends T> arg0)
method_57829(class_9331<? extends T> arg0)
get(ComponentType<? extends T> arg0)
public boolean
d(ku<?> arg0)
hasNonDefault(DataComponentType<?> arg0)
method_65890(class_9331<?> arg0)
hasChanged(ComponentType<?> type)
public <T> T
b(ku<? super T> arg0, T arg1)
set(DataComponentType<? super T> arg0, T arg1)
method_57938(class_9331<? super T> arg0, T arg1)
set(ComponentType<? super T> type, T value)
public <T> T
e(ku<? extends T> arg0)
remove(DataComponentType<? extends T> arg0)
method_57939(class_9331<? extends T> arg0)
remove(ComponentType<? extends T> type)
public void
a(ks arg0)
applyPatch(DataComponentPatch arg0)
method_57936(class_9326 arg0)
applyChanges(ComponentChanges changes)
private void
a(ku<?> arg0, Optional<?> arg1)
applyPatch(DataComponentType<?> arg0, Optional<?> arg1)
method_57937(class_9331<?> arg0, Optional<?> arg1)
applyChange(ComponentType<?> type, Optional<?> optional)
public void
b(ks arg0)
restorePatch(DataComponentPatch arg0)
method_59772(class_9326 arg0)
setChanges(ComponentChanges changes)
public void
f()
clearPatch()
method_62714()
clearChanges()
public void
a(kr arg0)
setAll(DataComponentMap arg0)
method_57933(class_9323 arg0)
setAll(ComponentMap components)
private void
j()
ensureMapOwnership()
method_57942()
onWrite()
public Set<DataComponentType<?>>
b()
keySet()
method_57831()
getTypes()
public Iterator<TypedDataComponent<?>>
iterator()
iterator()
public int
d()
size()
method_57835()
size()
public DataComponentPatch
g()
asPatch()
method_57940()
getChanges()
public PatchedDataComponentMap
h()
copy()
method_57941()
copy()
public DataComponentMap
i()
toImmutableMap()
method_65769()
immutableCopy()