Package net.minecraft.component
Interface ComponentType<T>
- All Known Implementing Classes:
ComponentType.Builder.SimpleDataComponentType
public interface ComponentType<T>
- Mappings:
Namespace Name named net/minecraft/component/ComponentType
intermediary net/minecraft/class_9331
official km
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<ComponentType<?>> static final PacketCodec
<RegistryByteBuf, ComponentType<?>> static final com.mojang.serialization.Codec
<ComponentType<?>> static final com.mojang.serialization.Codec
<Map<ComponentType<?>, Object>> -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ComponentType.Builder
<T> builder()
getCodec()
default com.mojang.serialization.Codec
<T> PacketCodec
<? super RegistryByteBuf, T> default boolean
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/component/ComponentType;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_49600
Lnet/minecraft/class_9331;field_49600:Lcom/mojang/serialization/Codec;
official a
Lkm;a:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/component/ComponentType;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_49601
Lnet/minecraft/class_9331;field_49601:Lnet/minecraft/class_9139;
official b
Lkm;b:Lys;
-
PERSISTENT_CODEC
- Mappings:
Namespace Name Mixin selector named PERSISTENT_CODEC
Lnet/minecraft/component/ComponentType;PERSISTENT_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_50236
Lnet/minecraft/class_9331;field_50236:Lcom/mojang/serialization/Codec;
official c
Lkm;c:Lcom/mojang/serialization/Codec;
-
TYPE_TO_VALUE_MAP_CODEC
- Mappings:
Namespace Name Mixin selector named TYPE_TO_VALUE_MAP_CODEC
Lnet/minecraft/component/ComponentType;TYPE_TO_VALUE_MAP_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_50237
Lnet/minecraft/class_9331;field_50237:Lcom/mojang/serialization/Codec;
official d
Lkm;d:Lcom/mojang/serialization/Codec;
-
-
Method Details
-
builder
- Mappings:
Namespace Name Mixin selector named builder
Lnet/minecraft/component/ComponentType;builder()Lnet/minecraft/component/ComponentType$Builder;
intermediary method_57873
Lnet/minecraft/class_9331;method_57873()Lnet/minecraft/class_9331$class_9332;
official a
Lkm;a()Lkm$a;
-
getCodec
- Mappings:
Namespace Name Mixin selector named getCodec
Lnet/minecraft/component/ComponentType;getCodec()Lcom/mojang/serialization/Codec;
intermediary method_57875
Lnet/minecraft/class_9331;method_57875()Lcom/mojang/serialization/Codec;
official b
Lkm;b()Lcom/mojang/serialization/Codec;
-
getCodecOrThrow
- Mappings:
Namespace Name Mixin selector named getCodecOrThrow
Lnet/minecraft/component/ComponentType;getCodecOrThrow()Lcom/mojang/serialization/Codec;
intermediary method_57876
Lnet/minecraft/class_9331;method_57876()Lcom/mojang/serialization/Codec;
official c
Lkm;c()Lcom/mojang/serialization/Codec;
-
shouldSkipSerialization
default boolean shouldSkipSerialization()- Mappings:
Namespace Name Mixin selector named shouldSkipSerialization
Lnet/minecraft/component/ComponentType;shouldSkipSerialization()Z
intermediary method_57877
Lnet/minecraft/class_9331;method_57877()Z
official d
Lkm;d()Z
-
getPacketCodec
PacketCodec<? super RegistryByteBuf,T> getPacketCodec()- Mappings:
Namespace Name Mixin selector named getPacketCodec
Lnet/minecraft/component/ComponentType;getPacketCodec()Lnet/minecraft/network/codec/PacketCodec;
intermediary method_57878
Lnet/minecraft/class_9331;method_57878()Lnet/minecraft/class_9139;
official e
Lkm;e()Lys;
-