Class ComponentChanges.Builder

java.lang.Object
net.minecraft.component.ComponentChanges.Builder
Enclosing class:
ComponentChanges

public static class ComponentChanges.Builder extends Object
Mappings:
Namespace Name
named net/minecraft/component/ComponentChanges$Builder
intermediary net/minecraft/class_9326$class_9327
official kj$a
  • Field Details

    • changes

      private final Reference2ObjectMap<DataComponentType<?>,Optional<?>> changes
      Mappings:
      Namespace Name Mixin selector
      named changes Lnet/minecraft/component/ComponentChanges$Builder;changes:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
      intermediary field_49593 Lnet/minecraft/class_9326$class_9327;field_49593:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
      official a Lkj$a;a:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
  • Constructor Details

    • Builder

      Builder()
  • Method Details

    • add

      public <T> ComponentChanges.Builder add(DataComponentType<T> type, T value)
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/component/ComponentChanges$Builder;add(Lnet/minecraft/component/DataComponentType;Ljava/lang/Object;)Lnet/minecraft/component/ComponentChanges$Builder;
      intermediary method_57854 Lnet/minecraft/class_9326$class_9327;method_57854(Lnet/minecraft/class_9331;Ljava/lang/Object;)Lnet/minecraft/class_9326$class_9327;
      official a Lkj$a;a(Lkl;Ljava/lang/Object;)Lkj$a;
    • remove

      public <T> ComponentChanges.Builder remove(DataComponentType<T> type)
      Mappings:
      Namespace Name Mixin selector
      named remove Lnet/minecraft/component/ComponentChanges$Builder;remove(Lnet/minecraft/component/DataComponentType;)Lnet/minecraft/component/ComponentChanges$Builder;
      intermediary method_57853 Lnet/minecraft/class_9326$class_9327;method_57853(Lnet/minecraft/class_9331;)Lnet/minecraft/class_9326$class_9327;
      official a Lkj$a;a(Lkl;)Lkj$a;
    • add

      public <T> ComponentChanges.Builder add(Component<T> component)
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/component/ComponentChanges$Builder;add(Lnet/minecraft/component/Component;)Lnet/minecraft/component/ComponentChanges$Builder;
      intermediary method_57855 Lnet/minecraft/class_9326$class_9327;method_57855(Lnet/minecraft/class_9336;)Lnet/minecraft/class_9326$class_9327;
      official a Lkj$a;a(Lko;)Lkj$a;
    • build

      public ComponentChanges build()
      Mappings:
      Namespace Name Mixin selector
      named build Lnet/minecraft/component/ComponentChanges$Builder;build()Lnet/minecraft/component/ComponentChanges;
      intermediary method_57852 Lnet/minecraft/class_9326$class_9327;method_57852()Lnet/minecraft/class_9326;
      official a Lkj$a;a()Lkj;