Interface DataComponentType<T>

All Known Implementing Classes:
DataComponentType.Builder.SimpleDataComponentType

public interface DataComponentType<T>
Mappings:
Namespace Name
named net/minecraft/component/DataComponentType
intermediary net/minecraft/class_9331
official kl
  • Field Details

    • CODEC

      static final com.mojang.serialization.Codec<DataComponentType<?>> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/component/DataComponentType;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_49600 Lnet/minecraft/class_9331;field_49600:Lcom/mojang/serialization/Codec;
      official a Lkl;a:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC

      static final PacketCodec<RegistryByteBuf,DataComponentType<?>> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/component/DataComponentType;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_49601 Lnet/minecraft/class_9331;field_49601:Lnet/minecraft/class_9139;
      official b Lkl;b:Lzn;
    • PERSISTENT_CODEC

      static final com.mojang.serialization.Codec<DataComponentType<?>> PERSISTENT_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PERSISTENT_CODEC Lnet/minecraft/component/DataComponentType;PERSISTENT_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_50236 Lnet/minecraft/class_9331;field_50236:Lcom/mojang/serialization/Codec;
      official c Lkl;c:Lcom/mojang/serialization/Codec;
    • TYPE_TO_VALUE_MAP_CODEC

      static final com.mojang.serialization.Codec<Map<DataComponentType<?>,Object>> TYPE_TO_VALUE_MAP_CODEC
      Mappings:
      Namespace Name Mixin selector
      named TYPE_TO_VALUE_MAP_CODEC Lnet/minecraft/component/DataComponentType;TYPE_TO_VALUE_MAP_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_50237 Lnet/minecraft/class_9331;field_50237:Lcom/mojang/serialization/Codec;
      official d Lkl;d:Lcom/mojang/serialization/Codec;
  • Method Details

    • builder

      static <T> DataComponentType.Builder<T> builder()
      Mappings:
      Namespace Name Mixin selector
      named builder Lnet/minecraft/component/DataComponentType;builder()Lnet/minecraft/component/DataComponentType$Builder;
      intermediary method_57873 Lnet/minecraft/class_9331;method_57873()Lnet/minecraft/class_9331$class_9332;
      official a Lkl;a()Lkl$a;
    • getCodec

      @Nullable @Nullable com.mojang.serialization.Codec<T> getCodec()
      Mappings:
      Namespace Name Mixin selector
      named getCodec Lnet/minecraft/component/DataComponentType;getCodec()Lcom/mojang/serialization/Codec;
      intermediary method_57875 Lnet/minecraft/class_9331;method_57875()Lcom/mojang/serialization/Codec;
      official b Lkl;b()Lcom/mojang/serialization/Codec;
    • getCodecOrThrow

      default com.mojang.serialization.Codec<T> getCodecOrThrow()
      Mappings:
      Namespace Name Mixin selector
      named getCodecOrThrow Lnet/minecraft/component/DataComponentType;getCodecOrThrow()Lcom/mojang/serialization/Codec;
      intermediary method_57876 Lnet/minecraft/class_9331;method_57876()Lcom/mojang/serialization/Codec;
      official c Lkl;c()Lcom/mojang/serialization/Codec;
    • shouldSkipSerialization

      default boolean shouldSkipSerialization()
      Mappings:
      Namespace Name Mixin selector
      named shouldSkipSerialization Lnet/minecraft/component/DataComponentType;shouldSkipSerialization()Z
      intermediary method_57877 Lnet/minecraft/class_9331;method_57877()Z
      official d Lkl;d()Z
    • getPacketCodec

      PacketCodec<? super RegistryByteBuf,T> getPacketCodec()
      Mappings:
      Namespace Name Mixin selector
      named getPacketCodec Lnet/minecraft/component/DataComponentType;getPacketCodec()Lnet/minecraft/network/codec/PacketCodec;
      intermediary method_57878 Lnet/minecraft/class_9331;method_57878()Lnet/minecraft/class_9139;
      official e Lkl;e()Lzn;