net.minecraft.core.component

public interface DataComponentMap

extends Iterable<TypedDataComponent<?>>

kr
net.minecraft.core.component.DataComponentMap
net.minecraft.class_9323
net.minecraft.component.ComponentMap
net.minecraft.core.component.DataComponentMap

Field summary

Modifier and TypeField
DataComponentMap
a
EMPTY
field_49584
EMPTY
com.mojang.serialization.Codec<DataComponentMap>
b
CODEC
field_50234
CODEC

Method summary

Modifier and TypeMethod
static com.mojang.serialization.Codec<DataComponentMap>
a(com.mojang.serialization.Codec<ku<?>> arg0)
makeCodec(com.mojang.serialization.Codec<DataComponentType<?>> arg0)
method_60386(com.mojang.serialization.Codec<class_9331<?>> arg0)
createCodec(com.mojang.serialization.Codec<ComponentType<?>> componentTypeCodec)
static com.mojang.serialization.Codec<DataComponentMap>
b(com.mojang.serialization.Codec<Map<ku<?>, Object>> arg0)
makeCodecFromMap(com.mojang.serialization.Codec<Map<DataComponentType<?>, Object>> arg0)
method_60388(com.mojang.serialization.Codec<Map<class_9331<?>, Object>> arg0)
createCodecFromValueMap(com.mojang.serialization.Codec<Map<ComponentType<?>, Object>> typeToValueMapCodec)
static DataComponentMap
a(kr arg0, kr arg1)
composite(DataComponentMap arg0, DataComponentMap arg1)
method_59771(class_9323 arg0, class_9323 arg1)
of(ComponentMap base, ComponentMap overrides)
static DataComponentMap$Builder
a()
builder()
method_57827()
builder()
<T> T
a(ku<? extends T> arg0)
get(DataComponentType<? extends T> arg0)
method_57829(class_9331<? extends T> arg0)
get(ComponentType<? extends T> type)
Set<DataComponentType<?>>
b()
keySet()
method_57831()
getTypes()
default boolean
b(ku<?> arg0)
has(DataComponentType<?> arg0)
method_57832(class_9331<?> arg0)
contains(ComponentType<?> type)
default <T> T
a(ku<? extends T> arg0, T arg1)
getOrDefault(DataComponentType<? extends T> arg0, T arg1)
method_57830(class_9331<? extends T> arg0, T arg1)
getOrDefault(ComponentType<? extends T> type, T fallback)
default <T> TypedDataComponent<T>
c(ku<T> arg0)
getTyped(DataComponentType<T> arg0)
method_57834(class_9331<T> arg0)
copy(ComponentType<T> type)
default Iterator<TypedDataComponent<?>>
iterator()
iterator()
default Stream<TypedDataComponent<?>>
c()
stream()
method_57833()
stream()
default int
d()
size()
method_57835()
size()
default boolean
e()
isEmpty()
method_57837()
isEmpty()
default DataComponentMap
a(Predicate<ku<?>> arg0)
filter(Predicate<DataComponentType<?>> arg0)
method_57828(Predicate<class_9331<?>> arg0)
filtered(Predicate<ComponentType<?>> predicate)