Package net.minecraft.component
Class ComponentMapImpl
java.lang.Object
net.minecraft.component.ComponentMapImpl
- All Implemented Interfaces:
Iterable<Component<?>>
,ComponentMap
- Mappings:
Namespace Name named net/minecraft/component/ComponentMapImpl
intermediary net/minecraft/class_9335
official kn
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.component.ComponentMap
ComponentMap.Builder
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ComponentMap
private Reference2ObjectMap
<DataComponentType<?>, Optional<?>> private boolean
Fields inherited from interface net.minecraft.component.ComponentMap
CODEC, EMPTY
-
Constructor Summary
ModifierConstructorDescriptionComponentMapImpl
(ComponentMap baseComponents) private
ComponentMapImpl
(ComponentMap baseComponents, Reference2ObjectMap<DataComponentType<?>, Optional<?>> changedComponents, boolean copyOnWrite) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
applyChange
(DataComponentType<?> type, Optional<?> optional) void
applyChanges
(ComponentChanges changes) copy()
static ComponentMapImpl
create
(ComponentMap baseComponents, ComponentChanges changes) boolean
<T> T
get
(DataComponentType<? extends T> type) Set
<DataComponentType<?>> getTypes()
int
hashCode()
iterator()
private void
onWrite()
<T> T
remove
(DataComponentType<? extends T> type) <T> T
set
(DataComponentType<? super T> type, T value) void
setAll
(ComponentMap components) void
setChanges
(ComponentChanges changes) private static boolean
shouldReuseChangesMap
(ComponentMap baseComponents, Reference2ObjectMap<DataComponentType<?>, Optional<?>> changedComponents) int
size()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.component.ComponentMap
contains, copy, filtered, getOrDefault, isEmpty, stream
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
baseComponents
- Mappings:
Namespace Name Mixin selector named baseComponents
Lnet/minecraft/component/ComponentMapImpl;baseComponents:Lnet/minecraft/component/ComponentMap;
intermediary field_49654
Lnet/minecraft/class_9335;field_49654:Lnet/minecraft/class_9323;
official c
Lkn;c:Lki;
-
changedComponents
- Mappings:
Namespace Name Mixin selector named changedComponents
Lnet/minecraft/component/ComponentMapImpl;changedComponents:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
intermediary field_49655
Lnet/minecraft/class_9335;field_49655:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
official d
Lkn;d:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
-
copyOnWrite
private boolean copyOnWrite- Mappings:
Namespace Name Mixin selector named copyOnWrite
Lnet/minecraft/component/ComponentMapImpl;copyOnWrite:Z
intermediary field_49656
Lnet/minecraft/class_9335;field_49656:Z
official e
Lkn;e:Z
-
-
Constructor Details
-
ComponentMapImpl
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/component/ComponentMapImpl;<init>(Lnet/minecraft/component/ComponentMap;)V
intermediary <init>
Lnet/minecraft/class_9335;<init>(Lnet/minecraft/class_9323;)V
official <init>
Lkn;<init>(Lki;)V
-
ComponentMapImpl
private ComponentMapImpl(ComponentMap baseComponents, Reference2ObjectMap<DataComponentType<?>, Optional<?>> changedComponents, boolean copyOnWrite) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/component/ComponentMapImpl;<init>(Lnet/minecraft/component/ComponentMap;Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;Z)V
intermediary <init>
Lnet/minecraft/class_9335;<init>(Lnet/minecraft/class_9323;Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;Z)V
official <init>
Lkn;<init>(Lki;Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;Z)V
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/component/ComponentMapImpl;create(Lnet/minecraft/component/ComponentMap;Lnet/minecraft/component/ComponentChanges;)Lnet/minecraft/component/ComponentMapImpl;
intermediary method_57935
Lnet/minecraft/class_9335;method_57935(Lnet/minecraft/class_9323;Lnet/minecraft/class_9326;)Lnet/minecraft/class_9335;
official a
Lkn;a(Lki;Lkj;)Lkn;
-
shouldReuseChangesMap
private static boolean shouldReuseChangesMap(ComponentMap baseComponents, Reference2ObjectMap<DataComponentType<?>, Optional<?>> changedComponents) - Mappings:
Namespace Name Mixin selector named shouldReuseChangesMap
Lnet/minecraft/component/ComponentMapImpl;shouldReuseChangesMap(Lnet/minecraft/component/ComponentMap;Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)Z
intermediary method_57934
Lnet/minecraft/class_9335;method_57934(Lnet/minecraft/class_9323;Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)Z
official a
Lkn;a(Lki;Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)Z
-
get
- Specified by:
get
in interfaceComponentMap
- Mappings:
Namespace Name Mixin selector named get
Lnet/minecraft/component/ComponentMap;get(Lnet/minecraft/component/DataComponentType;)Ljava/lang/Object;
intermediary method_57829
Lnet/minecraft/class_9323;method_57829(Lnet/minecraft/class_9331;)Ljava/lang/Object;
official a
Lki;a(Lkl;)Ljava/lang/Object;
-
set
- Mappings:
Namespace Name Mixin selector named set
Lnet/minecraft/component/ComponentMapImpl;set(Lnet/minecraft/component/DataComponentType;Ljava/lang/Object;)Ljava/lang/Object;
intermediary method_57938
Lnet/minecraft/class_9335;method_57938(Lnet/minecraft/class_9331;Ljava/lang/Object;)Ljava/lang/Object;
official b
Lkn;b(Lkl;Ljava/lang/Object;)Ljava/lang/Object;
-
remove
- Mappings:
Namespace Name Mixin selector named remove
Lnet/minecraft/component/ComponentMapImpl;remove(Lnet/minecraft/component/DataComponentType;)Ljava/lang/Object;
intermediary method_57939
Lnet/minecraft/class_9335;method_57939(Lnet/minecraft/class_9331;)Ljava/lang/Object;
official d
Lkn;d(Lkl;)Ljava/lang/Object;
-
applyChanges
- Mappings:
Namespace Name Mixin selector named applyChanges
Lnet/minecraft/component/ComponentMapImpl;applyChanges(Lnet/minecraft/component/ComponentChanges;)V
intermediary method_57936
Lnet/minecraft/class_9335;method_57936(Lnet/minecraft/class_9326;)V
official a
Lkn;a(Lkj;)V
-
applyChange
- Mappings:
Namespace Name Mixin selector named applyChange
Lnet/minecraft/component/ComponentMapImpl;applyChange(Lnet/minecraft/component/DataComponentType;Ljava/util/Optional;)V
intermediary method_57937
Lnet/minecraft/class_9335;method_57937(Lnet/minecraft/class_9331;Ljava/util/Optional;)V
official a
Lkn;a(Lkl;Ljava/util/Optional;)V
-
setChanges
- Mappings:
Namespace Name Mixin selector named setChanges
Lnet/minecraft/component/ComponentMapImpl;setChanges(Lnet/minecraft/component/ComponentChanges;)V
intermediary method_59772
Lnet/minecraft/class_9335;method_59772(Lnet/minecraft/class_9326;)V
official b
Lkn;b(Lkj;)V
-
setAll
- Mappings:
Namespace Name Mixin selector named setAll
Lnet/minecraft/component/ComponentMapImpl;setAll(Lnet/minecraft/component/ComponentMap;)V
intermediary method_57933
Lnet/minecraft/class_9335;method_57933(Lnet/minecraft/class_9323;)V
official a
Lkn;a(Lki;)V
-
onWrite
private void onWrite()- Mappings:
Namespace Name Mixin selector named onWrite
Lnet/minecraft/component/ComponentMapImpl;onWrite()V
intermediary method_57942
Lnet/minecraft/class_9335;method_57942()V
official h
Lkn;h()V
-
getTypes
- Specified by:
getTypes
in interfaceComponentMap
- Mappings:
Namespace Name Mixin selector named getTypes
Lnet/minecraft/component/ComponentMap;getTypes()Ljava/util/Set;
intermediary method_57831
Lnet/minecraft/class_9323;method_57831()Ljava/util/Set;
official b
Lki;b()Ljava/util/Set;
-
iterator
- Specified by:
iterator
in interfaceComponentMap
- Specified by:
iterator
in interfaceIterable<Component<?>>
-
size
public int size()- Specified by:
size
in interfaceComponentMap
- Mappings:
Namespace Name Mixin selector named size
Lnet/minecraft/component/ComponentMap;size()I
intermediary method_57835
Lnet/minecraft/class_9323;method_57835()I
official d
Lki;d()I
-
getChanges
- Mappings:
Namespace Name Mixin selector named getChanges
Lnet/minecraft/component/ComponentMapImpl;getChanges()Lnet/minecraft/component/ComponentChanges;
intermediary method_57940
Lnet/minecraft/class_9335;method_57940()Lnet/minecraft/class_9326;
official f
Lkn;f()Lkj;
-
copy
- Mappings:
Namespace Name Mixin selector named copy
Lnet/minecraft/component/ComponentMapImpl;copy()Lnet/minecraft/component/ComponentMapImpl;
intermediary method_57941
Lnet/minecraft/class_9335;method_57941()Lnet/minecraft/class_9335;
official g
Lkn;g()Lkn;
-
equals
-
hashCode
public int hashCode() -
toString
-