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

    • changes

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

    • Builder

      Builder()
  • Method Details

    • add

      public <T> ComponentChanges.Builder add(ComponentType<T> type, T value)
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/component/ComponentChanges$Builder;add(Lnet/minecraft/component/ComponentType;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 Lkr$a;a(Lkt;Ljava/lang/Object;)Lkr$a;
    • remove

      public <T> ComponentChanges.Builder remove(ComponentType<T> type)
      Mappings:
      Namespace Name Mixin selector
      named remove Lnet/minecraft/component/ComponentChanges$Builder;remove(Lnet/minecraft/component/ComponentType;)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 Lkr$a;a(Lkt;)Lkr$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 Lkr$a;a(Lkw;)Lkr$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 Lkr$a;a()Lkr;