net.minecraft.component

public interface ComponentType<T>

net.minecraft.core.component.DataComponentType
net.minecraft.class_9331
net.minecraft.component.ComponentType

Field summary

Modifier and TypeField
com.mojang.serialization.Codec<ComponentType<?>>
CODEC
field_49600
CODEC
PacketCodec<RegistryByteBuf, ComponentType<?>>
STREAM_CODEC
field_49601
PACKET_CODEC
com.mojang.serialization.Codec<ComponentType<?>>
PERSISTENT_CODEC
field_50236
PERSISTENT_CODEC
com.mojang.serialization.Codec<Map<ComponentType<?>, Object>>
VALUE_MAP_CODEC
field_50237
TYPE_TO_VALUE_MAP_CODEC

Method summary

Modifier and TypeMethod
static <T> ComponentType$Builder<T>
builder()
method_57873()
builder()
com.mojang.serialization.Codec<T>
codec()
method_57875()
getCodec()
default com.mojang.serialization.Codec<T>
codecOrThrow()
method_57876()
getCodecOrThrow()
default boolean
isTransient()
method_57877()
shouldSkipSerialization()
boolean
ignoreSwapAnimation()
method_75506()
skipsHandAnimation()
PacketCodec<? super RegistryByteBuf, T>
streamCodec()
method_57878()
getPacketCodec()
private static com.mojang.serialization.DataResult
lambda$static$2(DataComponentType arg0)
method_58761(class_9331 arg0)
method_58761(ComponentType componentType)
private static String
lambda$static$3(DataComponentType arg0)
method_58762(class_9331 arg0)
method_58762(ComponentType arg0)
private static PacketCodec
lambda$static$1(StreamCodec arg0)
method_57874(class_9139 arg0)
method_57874(PacketCodec packetCodec)
private static com.mojang.serialization.Codec
lambda$static$0()
method_57879()
method_57879()