Class DataComponentType.Builder<T>

java.lang.Object
net.minecraft.component.DataComponentType.Builder<T>
Enclosing interface:
DataComponentType<T>

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

    • codec

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

      @Nullable private @Nullable PacketCodec<? super RegistryByteBuf,T> packetCodec
      Mappings:
      Namespace Name Mixin selector
      named packetCodec Lnet/minecraft/component/DataComponentType$Builder;packetCodec:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_49603 Lnet/minecraft/class_9331$class_9332;field_49603:Lnet/minecraft/class_9139;
      official b Lkl$a;b:Lzn;
    • cache

      private boolean cache
      Mappings:
      Namespace Name Mixin selector
      named cache Lnet/minecraft/component/DataComponentType$Builder;cache:Z
      intermediary field_51517 Lnet/minecraft/class_9331$class_9332;field_51517:Z
      official c Lkl$a;c:Z
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • codec

      public DataComponentType.Builder<T> codec(com.mojang.serialization.Codec<T> codec)
      Mappings:
      Namespace Name Mixin selector
      named codec Lnet/minecraft/component/DataComponentType$Builder;codec(Lcom/mojang/serialization/Codec;)Lnet/minecraft/component/DataComponentType$Builder;
      intermediary method_57881 Lnet/minecraft/class_9331$class_9332;method_57881(Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_9331$class_9332;
      official a Lkl$a;a(Lcom/mojang/serialization/Codec;)Lkl$a;
    • packetCodec

      public DataComponentType.Builder<T> packetCodec(PacketCodec<? super RegistryByteBuf,T> packetCodec)
      Mappings:
      Namespace Name Mixin selector
      named packetCodec Lnet/minecraft/component/DataComponentType$Builder;packetCodec(Lnet/minecraft/network/codec/PacketCodec;)Lnet/minecraft/component/DataComponentType$Builder;
      intermediary method_57882 Lnet/minecraft/class_9331$class_9332;method_57882(Lnet/minecraft/class_9139;)Lnet/minecraft/class_9331$class_9332;
      official a Lkl$a;a(Lzn;)Lkl$a;
    • cache

      public DataComponentType.Builder<T> cache()
      Mappings:
      Namespace Name Mixin selector
      named cache Lnet/minecraft/component/DataComponentType$Builder;cache()Lnet/minecraft/component/DataComponentType$Builder;
      intermediary method_59871 Lnet/minecraft/class_9331$class_9332;method_59871()Lnet/minecraft/class_9331$class_9332;
      official a Lkl$a;a()Lkl$a;
    • build

      public DataComponentType<T> build()
      Mappings:
      Namespace Name Mixin selector
      named build Lnet/minecraft/component/DataComponentType$Builder;build()Lnet/minecraft/component/DataComponentType;
      intermediary method_57880 Lnet/minecraft/class_9331$class_9332;method_57880()Lnet/minecraft/class_9331;
      official b Lkl$a;b()Lkl;