net.minecraft.core.component

public final class PatchedDataComponentMap

implements DataComponentMap

kr
net.minecraft.core.component.PatchedDataComponentMap
net.minecraft.class_9335
net.minecraft.unmapped.C_jvfovkxa
net.minecraft.component.ComponentMapImpl
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(km arg0, kn 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(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)
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(kp<? 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 <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)
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
d(kp<? 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(kn 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(kp<?> 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(kn 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
a(km 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
h()
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
f()
asPatch()
method_57940()
m_hcxzaime()
getChanges()
asPatch()
m_320212_()
public PatchedDataComponentMap
g()
copy()
method_57941()
m_wghzngnj()
copy()
copy()
m_319920_()