Class ComponentMap.Builder

java.lang.Object
net.minecraft.component.ComponentMap.Builder
Enclosing interface:
ComponentMap

public static class ComponentMap.Builder extends Object
Mappings:
Namespace Name
named net/minecraft/component/ComponentMap$Builder
intermediary net/minecraft/class_9323$class_9324
official ki$a
  • Field Details

    • components

      private final Reference2ObjectMap<DataComponentType<?>,Object> components
      Mappings:
      Namespace Name Mixin selector
      named components Lnet/minecraft/component/ComponentMap$Builder;components:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
      intermediary field_49587 Lnet/minecraft/class_9323$class_9324;field_49587:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
      official a Lki$a;a:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
  • Constructor Details

    • Builder

      Builder()
  • Method Details

    • add

      public <T> ComponentMap.Builder add(DataComponentType<T> type, @Nullable T value)
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/component/ComponentMap$Builder;add(Lnet/minecraft/component/DataComponentType;Ljava/lang/Object;)Lnet/minecraft/component/ComponentMap$Builder;
      intermediary method_57840 Lnet/minecraft/class_9323$class_9324;method_57840(Lnet/minecraft/class_9331;Ljava/lang/Object;)Lnet/minecraft/class_9323$class_9324;
      official a Lki$a;a(Lkl;Ljava/lang/Object;)Lki$a;
    • put

      <T> void put(DataComponentType<T> type, @Nullable @Nullable Object value)
      Mappings:
      Namespace Name Mixin selector
      named put Lnet/minecraft/component/ComponentMap$Builder;put(Lnet/minecraft/component/DataComponentType;Ljava/lang/Object;)V
      intermediary method_58756 Lnet/minecraft/class_9323$class_9324;method_58756(Lnet/minecraft/class_9331;Ljava/lang/Object;)V
      official b Lki$a;b(Lkl;Ljava/lang/Object;)V
    • addAll

      public ComponentMap.Builder addAll(ComponentMap componentSet)
      Mappings:
      Namespace Name Mixin selector
      named addAll Lnet/minecraft/component/ComponentMap$Builder;addAll(Lnet/minecraft/component/ComponentMap;)Lnet/minecraft/component/ComponentMap$Builder;
      intermediary method_57839 Lnet/minecraft/class_9323$class_9324;method_57839(Lnet/minecraft/class_9323;)Lnet/minecraft/class_9323$class_9324;
      official a Lki$a;a(Lki;)Lki$a;
    • build

      public ComponentMap build()
      Mappings:
      Namespace Name Mixin selector
      named build Lnet/minecraft/component/ComponentMap$Builder;build()Lnet/minecraft/component/ComponentMap;
      intermediary method_57838 Lnet/minecraft/class_9323$class_9324;method_57838()Lnet/minecraft/class_9323;
      official a Lki$a;a()Lki;
    • build

      private static ComponentMap build(Map<DataComponentType<?>,Object> components)
      Mappings:
      Namespace Name Mixin selector
      named build Lnet/minecraft/component/ComponentMap$Builder;build(Ljava/util/Map;)Lnet/minecraft/component/ComponentMap;
      intermediary method_58755 Lnet/minecraft/class_9323$class_9324;method_58755(Ljava/util/Map;)Lnet/minecraft/class_9323;
      official a Lki$a;a(Ljava/util/Map;)Lki;