net.minecraft.core.component

public final class PatchedDataComponentMap

implements DataComponentMap

kr
net.minecraft.core.component.PatchedDataComponentMap
net.minecraft.class_9335
net.minecraft.component.ComponentMapImpl
net.minecraft.src.C_313555_
net.minecraft.core.component.PatchedDataComponentMap

Field summary

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

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(km arg0, kn arg1)
fromPatch(DataComponentMap arg0, DataComponentPatch arg1)
method_57935(class_9323 arg0, class_9326 arg1)
create(ComponentMap baseComponents, ComponentChanges changes)
m_322493_(C_313470_ p_334311_, C_313461_ p_332061_)
private static boolean
a(km arg0, it.unimi.dsi.fastutil.objects.Reference2ObjectMap<kp<?>, 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)
m_323581_(C_313470_ p_331971_, it.unimi.dsi.fastutil.objects.Reference2ObjectMap<C_313543_<?>, Optional<?>> p_332857_)
public <T> T
a(kp<? extends T> arg0)
get(DataComponentType<? extends T> arg0)
method_57829(class_9331<? extends T> arg0)
get(ComponentType<? extends T> arg0)
m_318834_(C_313543_<? extends T> arg0)
public <T> T
b(kp<? 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)
m_322371_(C_313543_<? super T> p_328828_, T arg1)
public <T> T
d(kp<? extends T> arg0)
remove(DataComponentType<? extends T> arg0)
method_57939(class_9331<? extends T> arg0)
remove(ComponentType<? extends T> type)
m_321460_(C_313543_<? extends T> arg0)
public void
a(kn arg0)
applyPatch(DataComponentPatch arg0)
method_57936(class_9326 arg0)
applyChanges(ComponentChanges changes)
m_320975_(C_313461_ arg0)
private void
a(kp<?> arg0, Optional<?> arg1)
applyPatch(DataComponentType<?> arg0, Optional<?> arg1)
method_57937(class_9331<?> arg0, Optional<?> arg1)
applyChange(ComponentType<?> type, Optional<?> optional)
m_318645_(C_313543_<?> p_331456_, Optional<?> arg1)
public void
b(kn arg0)
restorePatch(DataComponentPatch arg0)
method_59772(class_9326 arg0)
setChanges(ComponentChanges changes)
m_324830_(C_313461_ arg0)
public void
a(km arg0)
setAll(DataComponentMap arg0)
method_57933(class_9323 arg0)
setAll(ComponentMap components)
m_324935_(C_313470_ arg0)
private void
h()
ensureMapOwnership()
method_57942()
onWrite()
m_322433_()
public Set<DataComponentType<?>>
b()
keySet()
method_57831()
getTypes()
m_319675_()
public Iterator<TypedDataComponent<?>>
iterator()
iterator()
iterator()
public int
d()
size()
method_57835()
size()
m_319491_()
public DataComponentPatch
f()
asPatch()
method_57940()
getChanges()
m_320212_()
public PatchedDataComponentMap
g()
copy()
method_57941()
copy()
m_319920_()