net.minecraft.core.component

public interface DataComponentMap

extends Iterable<TypedDataComponent<?>>

km
net.minecraft.core.component.DataComponentMap
net.minecraft.class_9323
net.minecraft.component.ComponentMap
net.minecraft.src.C_313470_
net.minecraft.core.component.DataComponentMap

Field summary

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

Method summary

Modifier and TypeMethod
static com.mojang.serialization.Codec<DataComponentMap>
a(com.mojang.serialization.Codec<kp<?>> arg0)
makeCodec(com.mojang.serialization.Codec<DataComponentType<?>> arg0)
method_60386(com.mojang.serialization.Codec<class_9331<?>> arg0)
createCodec(com.mojang.serialization.Codec<ComponentType<?>> componentTypeCodec)
m_338433_(com.mojang.serialization.Codec<C_313543_<?>> p_343101_)
static com.mojang.serialization.Codec<DataComponentMap>
b(com.mojang.serialization.Codec<Map<kp<?>, 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)
m_339363_(com.mojang.serialization.Codec<Map<C_313543_<?>, Object>> p_343378_)
static DataComponentMap
a(km arg0, km arg1)
composite(DataComponentMap arg0, DataComponentMap arg1)
method_59771(class_9323 arg0, class_9323 arg1)
of(ComponentMap base, ComponentMap overrides)
m_319349_(C_313470_ p_329885_, C_313470_ p_330534_)
static DataComponentMap$Builder
a()
builder()
method_57827()
builder()
m_323371_()
<T> T
a(kp<? extends T> arg0)
get(DataComponentType<? extends T> arg0)
method_57829(class_9331<? extends T> arg0)
get(ComponentType<? extends T> type)
m_318834_(C_313543_<? extends T> arg0)
Set<DataComponentType<?>>
b()
keySet()
method_57831()
getTypes()
m_319675_()
default boolean
b(kp<?> arg0)
has(DataComponentType<?> arg0)
method_57832(class_9331<?> arg0)
contains(ComponentType<?> type)
m_321946_(C_313543_<?> arg0)
default <T> T
a(kp<? 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)
m_322806_(C_313543_<? extends T> p_334477_, T arg1)
default <T> TypedDataComponent<T>
c(kp<T> arg0)
getTyped(DataComponentType<T> arg0)
method_57834(class_9331<T> arg0)
copy(ComponentType<T> type)
m_319453_(C_313543_<T> arg0)
default Iterator<TypedDataComponent<?>>
iterator()
iterator()
iterator()
default Stream<TypedDataComponent<?>>
c()
stream()
method_57833()
stream()
m_322172_()
default int
d()
size()
method_57835()
size()
m_319491_()
default boolean
e()
isEmpty()
method_57837()
isEmpty()
m_323714_()
default DataComponentMap
a(Predicate<kp<?>> arg0)
filter(Predicate<DataComponentType<?>> arg0)
method_57828(Predicate<class_9331<?>> arg0)
filtered(Predicate<ComponentType<?>> predicate)
m_322426_(Predicate<C_313543_<?>> arg0)