net.minecraft.core.component

public final class PatchedDataComponentMap

implements DataComponentMap

kw
net.minecraft.core.component.PatchedDataComponentMap
net.minecraft.class_9335
net.minecraft.unmapped.C_jvfovkxa
net.minecraft.component.MergedComponentMap
net.minecraft.component.PatchedDataComponentMap
net.minecraft.src.C_313555_
net.minecraft.core.component.PatchedDataComponentMap

Field summary

Modifier and TypeField
private final DataComponentMap
c
prototype
field_49654
f_hxkgqbha
baseComponents
baseComponents
f_316296_
private it.unimi.dsi.fastutil.objects.Reference2ObjectMap<DataComponentType<?>, Optional<?>>
d
patch
field_49655
f_hrvcxchv
changedComponents
patchedComponents
f_315990_
private boolean
e
copyOnWrite
field_49656
f_uxlpjaoz
copyOnWrite
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(kr arg0, ks arg1)
fromPatch(DataComponentMap arg0, DataComponentPatch arg1)
method_57935(class_9323 arg0, class_9326 arg1)
m_mhaxwxbt(C_kouhnfig arg0, C_jqyoylib arg1)
create(ComponentMap baseComponents, ComponentChanges changes)
create(DataComponentMap baseComponents, DataComponentPatch patch)
m_322493_(C_313470_ p_334311_, C_313461_ p_332061_)
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)
m_retkkwzv(C_kouhnfig arg0, it.unimi.dsi.fastutil.objects.Reference2ObjectMap<C_pscqxfcs<?>, Optional<?>> arg1)
shouldReuseChangesMap(ComponentMap baseComponents, it.unimi.dsi.fastutil.objects.Reference2ObjectMap<ComponentType<?>, Optional<?>> changedComponents)
shouldReusePatchedComponents(DataComponentMap baseComponents, it.unimi.dsi.fastutil.objects.Reference2ObjectMap<DataComponentType<?>, Optional<?>> patchedComponents)
m_323581_(C_313470_ p_331971_, it.unimi.dsi.fastutil.objects.Reference2ObjectMap<C_313543_<?>, Optional<?>> p_332857_)
public <T> T
a(ku<? extends T> arg0)
get(DataComponentType<? extends T> arg0)
method_57829(class_9331<? extends T> arg0)
m_ryahtcyv(C_pscqxfcs<? extends T> arg0)
get(ComponentType<? extends T> arg0)
get(DataComponentType<? extends T> arg0)
m_318834_(C_313543_<? extends T> arg0)
public boolean
d(ku<?> arg0)
hasNonDefault(DataComponentType<?> arg0)
method_65890(class_9331<?> arg0)
m_xjmdgkcq(C_pscqxfcs<?> arg0)
hasChanged(ComponentType<?> type)
m_373812_(C_313543_<?> arg0)
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)
m_baelkeig(C_pscqxfcs<? super T> arg0, T arg1)
set(ComponentType<? super T> type, T value)
put(DataComponentType<? super T> type, T value)
m_322371_(C_313543_<? super T> p_328828_, T arg1)
public <T> T
e(ku<? extends T> arg0)
remove(DataComponentType<? extends T> arg0)
method_57939(class_9331<? extends T> arg0)
m_lnpuiatd(C_pscqxfcs<? extends T> arg0)
remove(ComponentType<? extends T> type)
remove(DataComponentType<? extends T> type)
m_321460_(C_313543_<? extends T> arg0)
public void
a(ks arg0)
applyPatch(DataComponentPatch arg0)
method_57936(class_9326 arg0)
m_humvlhgl(C_jqyoylib arg0)
applyChanges(ComponentChanges changes)
applyPatch(DataComponentPatch patch)
m_320975_(C_313461_ arg0)
private void
a(ku<?> arg0, Optional<?> arg1)
applyPatch(DataComponentType<?> arg0, Optional<?> arg1)
method_57937(class_9331<?> arg0, Optional<?> arg1)
m_yyvpczzd(C_pscqxfcs<?> arg0, Optional<?> arg1)
applyChange(ComponentType<?> type, Optional<?> optional)
applyPatch(DataComponentType<?> type, Optional<?> value)
m_318645_(C_313543_<?> p_331456_, Optional<?> arg1)
public void
b(ks arg0)
restorePatch(DataComponentPatch arg0)
method_59772(class_9326 arg0)
m_wpvoxche(C_jqyoylib arg0)
setChanges(ComponentChanges changes)
restorePatch(DataComponentPatch patch)
m_324830_(C_313461_ arg0)
public void
f()
clearPatch()
method_62714()
m_qgvaslkg()
clearChanges()
clear()
m_354489_()
public void
a(kr arg0)
setAll(DataComponentMap arg0)
method_57933(class_9323 arg0)
m_xqwouufm(C_kouhnfig arg0)
setAll(ComponentMap components)
setAll(DataComponentMap map)
m_324935_(C_313470_ arg0)
private void
j()
ensureMapOwnership()
method_57942()
m_mywmfcws()
onWrite()
onWrite()
m_322433_()
public Set<DataComponentType<?>>
b()
keySet()
method_57831()
m_necyzwbs()
getTypes()
getKeys()
m_319675_()
public Iterator<TypedDataComponent<?>>
iterator()
iterator()
iterator()
public int
d()
size()
method_57835()
m_ekwvemme()
size()
size()
m_319491_()
public DataComponentPatch
g()
asPatch()
method_57940()
m_hcxzaime()
getChanges()
asPatch()
m_320212_()
public PatchedDataComponentMap
h()
copy()
method_57941()
m_wghzngnj()
copy()
copy()
m_319920_()
public DataComponentMap
i()
toImmutableMap()
method_65769()
m_fwgddpxs()
immutableCopy()
immutableCopy()
m_373186_()