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 kj
-
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
(ComponentType<?> type) copy
(ComponentType<T> type) static com.mojang.serialization.Codec
<ComponentMap> createCodec
(com.mojang.serialization.Codec<ComponentType<?>> componentTypeCodec) static com.mojang.serialization.Codec
<ComponentMap> createCodecFromValueMap
(com.mojang.serialization.Codec<Map<ComponentType<?>, Object>> typeToValueMapCodec) default ComponentMap
filtered
(Predicate<ComponentType<?>> predicate) <T> T
get
(ComponentType<? extends T> type) default <T> T
getOrDefault
(ComponentType<? extends T> type, T fallback) Set
<ComponentType<?>> 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
Lkj;a:Lkj;
-
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
Lkj;b:Lcom/mojang/serialization/Codec;
-
-
Method Details
-
createCodec
static com.mojang.serialization.Codec<ComponentMap> createCodec(com.mojang.serialization.Codec<ComponentType<?>> componentTypeCodec) - Mappings:
Namespace Name Mixin selector named createCodec
Lnet/minecraft/component/ComponentMap;createCodec(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
intermediary method_60386
Lnet/minecraft/class_9323;method_60386(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
official a
Lkj;a(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
-
createCodecFromValueMap
static com.mojang.serialization.Codec<ComponentMap> createCodecFromValueMap(com.mojang.serialization.Codec<Map<ComponentType<?>, Object>> typeToValueMapCodec) - Mappings:
Namespace Name Mixin selector named createCodecFromValueMap
Lnet/minecraft/component/ComponentMap;createCodecFromValueMap(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
intermediary method_60388
Lnet/minecraft/class_9323;method_60388(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
official b
Lkj;b(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
-
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
Lkj;a(Lkj;Lkj;)Lkj;
-
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
Lkj;a()Lkj$a;
-
get
- Mappings:
Namespace Name Mixin selector named get
Lnet/minecraft/component/ComponentMap;get(Lnet/minecraft/component/ComponentType;)Ljava/lang/Object;
intermediary method_57829
Lnet/minecraft/class_9323;method_57829(Lnet/minecraft/class_9331;)Ljava/lang/Object;
official a
Lkj;a(Lkm;)Ljava/lang/Object;
-
getTypes
Set<ComponentType<?>> 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
Lkj;b()Ljava/util/Set;
-
contains
- Mappings:
Namespace Name Mixin selector named contains
Lnet/minecraft/component/ComponentMap;contains(Lnet/minecraft/component/ComponentType;)Z
intermediary method_57832
Lnet/minecraft/class_9323;method_57832(Lnet/minecraft/class_9331;)Z
official b
Lkj;b(Lkm;)Z
-
getOrDefault
- Mappings:
Namespace Name Mixin selector named getOrDefault
Lnet/minecraft/component/ComponentMap;getOrDefault(Lnet/minecraft/component/ComponentType;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
Lkj;a(Lkm;Ljava/lang/Object;)Ljava/lang/Object;
-
copy
- Mappings:
Namespace Name Mixin selector named copy
Lnet/minecraft/component/ComponentMap;copy(Lnet/minecraft/component/ComponentType;)Lnet/minecraft/component/Component;
intermediary method_57834
Lnet/minecraft/class_9323;method_57834(Lnet/minecraft/class_9331;)Lnet/minecraft/class_9336;
official c
Lkj;c(Lkm;)Lkp;
-
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
Lkj;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
Lkj;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
Lkj;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
Lkj;a(Ljava/util/function/Predicate;)Lkj;
-