Class DataComponentType.Builder.SimpleDataComponentType<T>

java.lang.Object
net.minecraft.component.DataComponentType.Builder.SimpleDataComponentType<T>
All Implemented Interfaces:
DataComponentType<T>
Enclosing class:
DataComponentType.Builder<T>

private static class DataComponentType.Builder.SimpleDataComponentType<T> extends Object implements DataComponentType<T>
Mappings:
Namespace Name
named net/minecraft/component/DataComponentType$Builder$SimpleDataComponentType
intermediary net/minecraft/class_9331$class_9332$class_9333
official kl$a$a
  • Field Details

    • codec

      @Nullable private final @Nullable com.mojang.serialization.Codec<T> codec
      Mappings:
      Namespace Name Mixin selector
      named codec Lnet/minecraft/component/DataComponentType$Builder$SimpleDataComponentType;codec:Lcom/mojang/serialization/Codec;
      intermediary field_49604 Lnet/minecraft/class_9331$class_9332$class_9333;field_49604:Lcom/mojang/serialization/Codec;
      official e Lkl$a$a;e:Lcom/mojang/serialization/Codec;
    • packetCodec

      private final PacketCodec<? super RegistryByteBuf,T> packetCodec
      Mappings:
      Namespace Name Mixin selector
      named packetCodec Lnet/minecraft/component/DataComponentType$Builder$SimpleDataComponentType;packetCodec:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_49605 Lnet/minecraft/class_9331$class_9332$class_9333;field_49605:Lnet/minecraft/class_9139;
      official f Lkl$a$a;f:Lzn;
  • Constructor Details

    • SimpleDataComponentType

      SimpleDataComponentType(@Nullable @Nullable com.mojang.serialization.Codec<T> codec, PacketCodec<? super RegistryByteBuf,T> packetCodec)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/component/DataComponentType$Builder$SimpleDataComponentType;<init>(Lcom/mojang/serialization/Codec;Lnet/minecraft/network/codec/PacketCodec;)V
      intermediary <init> Lnet/minecraft/class_9331$class_9332$class_9333;<init>(Lcom/mojang/serialization/Codec;Lnet/minecraft/class_9139;)V
      official <init> Lkl$a$a;<init>(Lcom/mojang/serialization/Codec;Lzn;)V
  • Method Details

    • getCodec

      @Nullable public @Nullable com.mojang.serialization.Codec<T> getCodec()
      Specified by:
      getCodec in interface DataComponentType<T>
      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;
    • getPacketCodec

      public PacketCodec<? super RegistryByteBuf,T> getPacketCodec()
      Specified by:
      getPacketCodec in interface DataComponentType<T>
      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;
    • toString

      public String toString()
      Overrides:
      toString in class Object