net.minecraft.core.component

public final class PatchedDataComponentMap

implements DataComponentMap

kv
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(kq arg0, kr arg1)
fromPatch(DataComponentMap arg0, DataComponentPatch arg1)
method_57935(class_9323 arg0, class_9326 arg1)
create(ComponentMap baseComponents, ComponentChanges changes)
private static boolean
a(kq arg0, it.unimi.dsi.fastutil.objects.Reference2ObjectMap<kt<?>, 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(kt<? extends T> arg0)
get(DataComponentType<? extends T> arg0)
method_57829(class_9331<? extends T> arg0)
get(ComponentType<? extends T> arg0)
public <T> T
b(kt<? 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
d(kt<? extends T> arg0)
remove(DataComponentType<? extends T> arg0)
method_57939(class_9331<? extends T> arg0)
remove(ComponentType<? extends T> type)
public void
a(kr arg0)
applyPatch(DataComponentPatch arg0)
method_57936(class_9326 arg0)
applyChanges(ComponentChanges changes)
private void
a(kt<?> arg0, Optional<?> arg1)
applyPatch(DataComponentType<?> arg0, Optional<?> arg1)
method_57937(class_9331<?> arg0, Optional<?> arg1)
applyChange(ComponentType<?> type, Optional<?> optional)
public void
b(kr arg0)
restorePatch(DataComponentPatch arg0)
method_59772(class_9326 arg0)
setChanges(ComponentChanges changes)
public void
f()
clearPatch()
method_62714()
clearChanges()
public void
a(kq arg0)
setAll(DataComponentMap arg0)
method_57933(class_9323 arg0)
setAll(ComponentMap components)
private void
i()
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()