Class ComponentType.Builder<T>

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

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

    • codec

      @Nullable private @Nullable com.mojang.serialization.Codec<T> codec
      Mappings:
      Namespace Name Mixin selector
      named codec Lnet/minecraft/component/ComponentType$Builder;codec:Lcom/mojang/serialization/Codec;
      intermediary field_49602 Lnet/minecraft/class_9331$class_9332;field_49602:Lcom/mojang/serialization/Codec;
      official a Lkt$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/ComponentType$Builder;packetCodec:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_49603 Lnet/minecraft/class_9331$class_9332;field_49603:Lnet/minecraft/class_9139;
      official b Lkt$a;b:Lzt;
    • cache

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

    • Builder

      public Builder()
  • Method Details

    • codec

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

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

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

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