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 km$a
  • Field Details

    • components

      private final Reference2ObjectMap<ComponentType<?>,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 Lkm$a;a:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
  • Constructor Details

    • Builder

      Builder()
  • Method Details

    • add

      public <T> ComponentMap.Builder add(ComponentType<T> type, @Nullable T value)
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/component/ComponentMap$Builder;add(Lnet/minecraft/component/ComponentType;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 Lkm$a;a(Lkp;Ljava/lang/Object;)Lkm$a;
    • put

      <T> void put(ComponentType<T> type, @Nullable @Nullable Object value)
      Mappings:
      Namespace Name Mixin selector
      named put Lnet/minecraft/component/ComponentMap$Builder;put(Lnet/minecraft/component/ComponentType;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 Lkm$a;b(Lkp;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 Lkm$a;a(Lkm;)Lkm$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 Lkm$a;a()Lkm;
    • build

      private static ComponentMap build(Map<ComponentType<?>,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 Lkm$a;a(Ljava/util/Map;)Lkm;