Package net.minecraft.component
Class MergedComponentMap
java.lang.Object
net.minecraft.component.MergedComponentMap
- All Implemented Interfaces:
Iterable<Component<?>>,ComponentMap
A
Map that has a base map and changes to be applied on top of it.- Mappings:
Namespace Name named net/minecraft/component/MergedComponentMapintermediary net/minecraft/class_9335official kw
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.component.ComponentMap
ComponentMap.Builder -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ComponentMapprivate Reference2ObjectMap<ComponentType<?>, Optional<?>> private booleanFields inherited from interface net.minecraft.component.ComponentMap
CODEC, EMPTY -
Constructor Summary
ConstructorsModifierConstructorDescriptionMergedComponentMap(ComponentMap baseComponents) privateMergedComponentMap(ComponentMap baseComponents, Reference2ObjectMap<ComponentType<?>, Optional<?>> changedComponents, boolean copyOnWrite) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidapplyChange(ComponentType<?> type, Optional<?> optional) voidapplyChanges(ComponentChanges changes) voidcopy()static MergedComponentMapcreate(ComponentMap baseComponents, ComponentChanges changes) boolean<T> Tget(ComponentType<? extends T> type) Set<ComponentType<?>> getTypes()booleanhasChanged(ComponentType<?> type) inthashCode()iterator()private voidonWrite()<T> Tremove(ComponentType<? extends T> type) <T> Tset(ComponentType<? super T> type, T value) voidsetAll(ComponentMap components) voidsetChanges(ComponentChanges changes) private static booleanshouldReuseChangesMap(ComponentMap baseComponents, Reference2ObjectMap<ComponentType<?>, Optional<?>> changedComponents) intsize()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.component.ComponentMap
contains, copy, filtered, getOrDefault, isEmpty, streamMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
baseComponents
- Mappings:
Namespace Name Mixin selector named baseComponentsLnet/minecraft/component/MergedComponentMap;baseComponents:Lnet/minecraft/component/ComponentMap;intermediary field_49654Lnet/minecraft/class_9335;field_49654:Lnet/minecraft/class_9323;official cLkw;c:Lkr;
-
changedComponents
- Mappings:
Namespace Name Mixin selector named changedComponentsLnet/minecraft/component/MergedComponentMap;changedComponents:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;intermediary field_49655Lnet/minecraft/class_9335;field_49655:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;official dLkw;d:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
-
copyOnWrite
private boolean copyOnWrite- Mappings:
Namespace Name Mixin selector named copyOnWriteLnet/minecraft/component/MergedComponentMap;copyOnWrite:Zintermediary field_49656Lnet/minecraft/class_9335;field_49656:Zofficial eLkw;e:Z
-
-
Constructor Details
-
MergedComponentMap
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/component/MergedComponentMap;<init>(Lnet/minecraft/component/ComponentMap;)Vintermediary <init>Lnet/minecraft/class_9335;<init>(Lnet/minecraft/class_9323;)Vofficial <init>Lkw;<init>(Lkr;)V
-
MergedComponentMap
private MergedComponentMap(ComponentMap baseComponents, Reference2ObjectMap<ComponentType<?>, Optional<?>> changedComponents, boolean copyOnWrite) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/component/MergedComponentMap;<init>(Lnet/minecraft/component/ComponentMap;Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;Z)Vintermediary <init>Lnet/minecraft/class_9335;<init>(Lnet/minecraft/class_9323;Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;Z)Vofficial <init>Lkw;<init>(Lkr;Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;Z)V
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector named createLnet/minecraft/component/MergedComponentMap;create(Lnet/minecraft/component/ComponentMap;Lnet/minecraft/component/ComponentChanges;)Lnet/minecraft/component/MergedComponentMap;intermediary method_57935Lnet/minecraft/class_9335;method_57935(Lnet/minecraft/class_9323;Lnet/minecraft/class_9326;)Lnet/minecraft/class_9335;official aLkw;a(Lkr;Lks;)Lkw;
-
shouldReuseChangesMap
private static boolean shouldReuseChangesMap(ComponentMap baseComponents, Reference2ObjectMap<ComponentType<?>, Optional<?>> changedComponents) - Mappings:
Namespace Name Mixin selector named shouldReuseChangesMapLnet/minecraft/component/MergedComponentMap;shouldReuseChangesMap(Lnet/minecraft/component/ComponentMap;Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)Zintermediary method_57934Lnet/minecraft/class_9335;method_57934(Lnet/minecraft/class_9323;Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)Zofficial aLkw;a(Lkr;Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)Z
-
get
- Specified by:
getin interfaceComponentMap- Mappings:
Namespace Name Mixin selector named getLnet/minecraft/component/ComponentMap;get(Lnet/minecraft/component/ComponentType;)Ljava/lang/Object;intermediary method_57829Lnet/minecraft/class_9323;method_57829(Lnet/minecraft/class_9331;)Ljava/lang/Object;official aLkr;a(Lku;)Ljava/lang/Object;
-
hasChanged
- Mappings:
Namespace Name Mixin selector named hasChangedLnet/minecraft/component/MergedComponentMap;hasChanged(Lnet/minecraft/component/ComponentType;)Zintermediary method_65890Lnet/minecraft/class_9335;method_65890(Lnet/minecraft/class_9331;)Zofficial dLkw;d(Lku;)Z
-
set
- Mappings:
Namespace Name Mixin selector named setLnet/minecraft/component/MergedComponentMap;set(Lnet/minecraft/component/ComponentType;Ljava/lang/Object;)Ljava/lang/Object;intermediary method_57938Lnet/minecraft/class_9335;method_57938(Lnet/minecraft/class_9331;Ljava/lang/Object;)Ljava/lang/Object;official bLkw;b(Lku;Ljava/lang/Object;)Ljava/lang/Object;
-
remove
- Mappings:
Namespace Name Mixin selector named removeLnet/minecraft/component/MergedComponentMap;remove(Lnet/minecraft/component/ComponentType;)Ljava/lang/Object;intermediary method_57939Lnet/minecraft/class_9335;method_57939(Lnet/minecraft/class_9331;)Ljava/lang/Object;official eLkw;e(Lku;)Ljava/lang/Object;
-
applyChanges
- Mappings:
Namespace Name Mixin selector named applyChangesLnet/minecraft/component/MergedComponentMap;applyChanges(Lnet/minecraft/component/ComponentChanges;)Vintermediary method_57936Lnet/minecraft/class_9335;method_57936(Lnet/minecraft/class_9326;)Vofficial aLkw;a(Lks;)V
-
applyChange
- Mappings:
Namespace Name Mixin selector named applyChangeLnet/minecraft/component/MergedComponentMap;applyChange(Lnet/minecraft/component/ComponentType;Ljava/util/Optional;)Vintermediary method_57937Lnet/minecraft/class_9335;method_57937(Lnet/minecraft/class_9331;Ljava/util/Optional;)Vofficial aLkw;a(Lku;Ljava/util/Optional;)V
-
setChanges
- Mappings:
Namespace Name Mixin selector named setChangesLnet/minecraft/component/MergedComponentMap;setChanges(Lnet/minecraft/component/ComponentChanges;)Vintermediary method_59772Lnet/minecraft/class_9335;method_59772(Lnet/minecraft/class_9326;)Vofficial bLkw;b(Lks;)V
-
clearChanges
public void clearChanges()- Mappings:
Namespace Name Mixin selector named clearChangesLnet/minecraft/component/MergedComponentMap;clearChanges()Vintermediary method_62714Lnet/minecraft/class_9335;method_62714()Vofficial fLkw;f()V
-
setAll
- Mappings:
Namespace Name Mixin selector named setAllLnet/minecraft/component/MergedComponentMap;setAll(Lnet/minecraft/component/ComponentMap;)Vintermediary method_57933Lnet/minecraft/class_9335;method_57933(Lnet/minecraft/class_9323;)Vofficial aLkw;a(Lkr;)V
-
onWrite
private void onWrite()- Mappings:
Namespace Name Mixin selector named onWriteLnet/minecraft/component/MergedComponentMap;onWrite()Vintermediary method_57942Lnet/minecraft/class_9335;method_57942()Vofficial jLkw;j()V
-
getTypes
- Specified by:
getTypesin interfaceComponentMap- Mappings:
Namespace Name Mixin selector named getTypesLnet/minecraft/component/ComponentMap;getTypes()Ljava/util/Set;intermediary method_57831Lnet/minecraft/class_9323;method_57831()Ljava/util/Set;official bLkr;b()Ljava/util/Set;
-
iterator
- Specified by:
iteratorin interfaceComponentMap- Specified by:
iteratorin interfaceIterable<Component<?>>
-
size
public int size()- Specified by:
sizein interfaceComponentMap- Mappings:
Namespace Name Mixin selector named sizeLnet/minecraft/component/ComponentMap;size()Iintermediary method_57835Lnet/minecraft/class_9323;method_57835()Iofficial dLkr;d()I
-
getChanges
- Mappings:
Namespace Name Mixin selector named getChangesLnet/minecraft/component/MergedComponentMap;getChanges()Lnet/minecraft/component/ComponentChanges;intermediary method_57940Lnet/minecraft/class_9335;method_57940()Lnet/minecraft/class_9326;official gLkw;g()Lks;
-
copy
- Mappings:
Namespace Name Mixin selector named copyLnet/minecraft/component/MergedComponentMap;copy()Lnet/minecraft/component/MergedComponentMap;intermediary method_57941Lnet/minecraft/class_9335;method_57941()Lnet/minecraft/class_9335;official hLkw;h()Lkw;
-
immutableCopy
- Mappings:
Namespace Name Mixin selector named immutableCopyLnet/minecraft/component/MergedComponentMap;immutableCopy()Lnet/minecraft/component/ComponentMap;intermediary method_65769Lnet/minecraft/class_9335;method_65769()Lnet/minecraft/class_9323;official iLkw;i()Lkr;
-
equals
-
hashCode
public int hashCode() -
toString
-