Package net.minecraft.component
Interface ComponentMap
- All Known Implementing Classes:
ComponentMap.Builder.SimpleComponentMap
,ComponentMapImpl
- Mappings:
Namespace Name named net/minecraft/component/ComponentMap
intermediary net/minecraft/class_9323
official ki
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<ComponentMap> static final ComponentMap
-
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentMap.Builder
builder()
default boolean
contains
(DataComponentType<?> type) copy
(DataComponentType<T> type) default ComponentMap
filtered
(Predicate<DataComponentType<?>> predicate) <T> T
get
(DataComponentType<? extends T> type) default <T> T
getOrDefault
(DataComponentType<? extends T> type, T fallback) Set
<DataComponentType<?>> getTypes()
default boolean
isEmpty()
iterator()
static ComponentMap
of
(ComponentMap base, ComponentMap overrides) default int
size()
stream()
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
EMPTY
- Mappings:
Namespace Name Mixin selector named EMPTY
Lnet/minecraft/component/ComponentMap;EMPTY:Lnet/minecraft/component/ComponentMap;
intermediary field_49584
Lnet/minecraft/class_9323;field_49584:Lnet/minecraft/class_9323;
official a
Lki;a:Lki;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/component/ComponentMap;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_50234
Lnet/minecraft/class_9323;field_50234:Lcom/mojang/serialization/Codec;
official b
Lki;b:Lcom/mojang/serialization/Codec;
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector named of
Lnet/minecraft/component/ComponentMap;of(Lnet/minecraft/component/ComponentMap;Lnet/minecraft/component/ComponentMap;)Lnet/minecraft/component/ComponentMap;
intermediary method_59771
Lnet/minecraft/class_9323;method_59771(Lnet/minecraft/class_9323;Lnet/minecraft/class_9323;)Lnet/minecraft/class_9323;
official a
Lki;a(Lki;Lki;)Lki;
-
builder
- Mappings:
Namespace Name Mixin selector named builder
Lnet/minecraft/component/ComponentMap;builder()Lnet/minecraft/component/ComponentMap$Builder;
intermediary method_57827
Lnet/minecraft/class_9323;method_57827()Lnet/minecraft/class_9323$class_9324;
official a
Lki;a()Lki$a;
-
get
- 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;
-
getTypes
Set<DataComponentType<?>> getTypes()- 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;
-
contains
- Mappings:
Namespace Name Mixin selector named contains
Lnet/minecraft/component/ComponentMap;contains(Lnet/minecraft/component/DataComponentType;)Z
intermediary method_57832
Lnet/minecraft/class_9323;method_57832(Lnet/minecraft/class_9331;)Z
official b
Lki;b(Lkl;)Z
-
getOrDefault
- Mappings:
Namespace Name Mixin selector named getOrDefault
Lnet/minecraft/component/ComponentMap;getOrDefault(Lnet/minecraft/component/DataComponentType;Ljava/lang/Object;)Ljava/lang/Object;
intermediary method_57830
Lnet/minecraft/class_9323;method_57830(Lnet/minecraft/class_9331;Ljava/lang/Object;)Ljava/lang/Object;
official a
Lki;a(Lkl;Ljava/lang/Object;)Ljava/lang/Object;
-
copy
- Mappings:
Namespace Name Mixin selector named copy
Lnet/minecraft/component/ComponentMap;copy(Lnet/minecraft/component/DataComponentType;)Lnet/minecraft/component/Component;
intermediary method_57834
Lnet/minecraft/class_9323;method_57834(Lnet/minecraft/class_9331;)Lnet/minecraft/class_9336;
official c
Lki;c(Lkl;)Lko;
-
iterator
-
stream
- Mappings:
Namespace Name Mixin selector named stream
Lnet/minecraft/component/ComponentMap;stream()Ljava/util/stream/Stream;
intermediary method_57833
Lnet/minecraft/class_9323;method_57833()Ljava/util/stream/Stream;
official c
Lki;c()Ljava/util/stream/Stream;
-
size
default int size()- 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
-
isEmpty
default boolean isEmpty()- Mappings:
Namespace Name Mixin selector named isEmpty
Lnet/minecraft/component/ComponentMap;isEmpty()Z
intermediary method_57837
Lnet/minecraft/class_9323;method_57837()Z
official e
Lki;e()Z
-
filtered
- Mappings:
Namespace Name Mixin selector named filtered
Lnet/minecraft/component/ComponentMap;filtered(Ljava/util/function/Predicate;)Lnet/minecraft/component/ComponentMap;
intermediary method_57828
Lnet/minecraft/class_9323;method_57828(Ljava/util/function/Predicate;)Lnet/minecraft/class_9323;
official a
Lki;a(Ljava/util/function/Predicate;)Lki;
-