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 kp
-
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
Lkp;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
Lkp;b:Lyw;
-
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
Lkp;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
Lkp;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
Lkp;a()Lkp$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
Lkp;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
Lkp;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
Lkp;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
Lkp;e()Lyw;
-