Class ComponentChanges

java.lang.Object
net.minecraft.component.ComponentChanges

public final class ComponentChanges extends Object
Mappings:
Namespace Name
named net/minecraft/component/ComponentChanges
intermediary net/minecraft/class_9326
official kn
  • Field Details

    • EMPTY

      public static final ComponentChanges EMPTY
      Mappings:
      Namespace Name Mixin selector
      named EMPTY Lnet/minecraft/component/ComponentChanges;EMPTY:Lnet/minecraft/component/ComponentChanges;
      intermediary field_49588 Lnet/minecraft/class_9326;field_49588:Lnet/minecraft/class_9326;
      official a Lkn;a:Lkn;
    • CODEC

      public static final com.mojang.serialization.Codec<ComponentChanges> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/component/ComponentChanges;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_49589 Lnet/minecraft/class_9326;field_49589:Lcom/mojang/serialization/Codec;
      official b Lkn;b:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,ComponentChanges> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/component/ComponentChanges;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_49590 Lnet/minecraft/class_9326;field_49590:Lnet/minecraft/class_9139;
      official c Lkn;c:Lyx;
    • REMOVE_PREFIX

      private static final String REMOVE_PREFIX
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named REMOVE_PREFIX Lnet/minecraft/component/ComponentChanges;REMOVE_PREFIX:Ljava/lang/String;
      intermediary field_49592 Lnet/minecraft/class_9326;field_49592:Ljava/lang/String;
      official e Lkn;e:Ljava/lang/String;
    • changedComponents

      final Reference2ObjectMap<ComponentType<?>,Optional<?>> changedComponents
      Mappings:
      Namespace Name Mixin selector
      named changedComponents Lnet/minecraft/component/ComponentChanges;changedComponents:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
      intermediary field_49591 Lnet/minecraft/class_9326;field_49591:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
      official d Lkn;d:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
  • Constructor Details

    • ComponentChanges

      ComponentChanges(Reference2ObjectMap<ComponentType<?>,Optional<?>> changedComponents)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/component/ComponentChanges;<init>(Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)V
      intermediary <init> Lnet/minecraft/class_9326;<init>(Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)V
      official <init> Lkn;<init>(Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)V
  • Method Details

    • builder

      public static ComponentChanges.Builder builder()
      Mappings:
      Namespace Name Mixin selector
      named builder Lnet/minecraft/component/ComponentChanges;builder()Lnet/minecraft/component/ComponentChanges$Builder;
      intermediary method_57841 Lnet/minecraft/class_9326;method_57841()Lnet/minecraft/class_9326$class_9327;
      official a Lkn;a()Lkn$a;
    • get

      @Nullable public <T> @Nullable Optional<? extends T> get(ComponentType<? extends T> type)
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/component/ComponentChanges;get(Lnet/minecraft/component/ComponentType;)Ljava/util/Optional;
      intermediary method_57845 Lnet/minecraft/class_9326;method_57845(Lnet/minecraft/class_9331;)Ljava/util/Optional;
      official a Lkn;a(Lkp;)Ljava/util/Optional;
    • entrySet

      public Set<Map.Entry<ComponentType<?>,Optional<?>>> entrySet()
      Mappings:
      Namespace Name Mixin selector
      named entrySet Lnet/minecraft/component/ComponentChanges;entrySet()Ljava/util/Set;
      intermediary method_57846 Lnet/minecraft/class_9326;method_57846()Ljava/util/Set;
      official b Lkn;b()Ljava/util/Set;
    • size

      public int size()
      Mappings:
      Namespace Name Mixin selector
      named size Lnet/minecraft/component/ComponentChanges;size()I
      intermediary method_57847 Lnet/minecraft/class_9326;method_57847()I
      official c Lkn;c()I
    • withRemovedIf

      public ComponentChanges withRemovedIf(Predicate<ComponentType<?>> removedTypePredicate)
      Mappings:
      Namespace Name Mixin selector
      named withRemovedIf Lnet/minecraft/component/ComponentChanges;withRemovedIf(Ljava/util/function/Predicate;)Lnet/minecraft/component/ComponentChanges;
      intermediary method_58757 Lnet/minecraft/class_9326;method_58757(Ljava/util/function/Predicate;)Lnet/minecraft/class_9326;
      official a Lkn;a(Ljava/util/function/Predicate;)Lkn;
    • isEmpty

      public boolean isEmpty()
      Mappings:
      Namespace Name Mixin selector
      named isEmpty Lnet/minecraft/component/ComponentChanges;isEmpty()Z
      intermediary method_57848 Lnet/minecraft/class_9326;method_57848()Z
      official d Lkn;d()Z
    • toAddedRemovedPair

      public ComponentChanges.AddedRemovedPair toAddedRemovedPair()
      Mappings:
      Namespace Name Mixin selector
      named toAddedRemovedPair Lnet/minecraft/component/ComponentChanges;toAddedRemovedPair()Lnet/minecraft/component/ComponentChanges$AddedRemovedPair;
      intermediary method_58759 Lnet/minecraft/class_9326;method_58759()Lnet/minecraft/class_9326$class_9484;
      official e Lkn;e()Lkn$c;
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      named equals Lnet/minecraft/component/ComponentChanges;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_9326;equals(Ljava/lang/Object;)Z
      official equals Lkn;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      static String toString(Reference2ObjectMap<ComponentType<?>,Optional<?>> changes)
      Mappings:
      Namespace Name Mixin selector
      named toString Lnet/minecraft/component/ComponentChanges;toString(Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)Ljava/lang/String;
      intermediary method_57842 Lnet/minecraft/class_9326;method_57842(Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)Ljava/lang/String;
      official a Lkn;a(Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)Ljava/lang/String;