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 kj
  • 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 Lkj;a:Lkj;
    • 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 Lkj;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 Lkj;c:Lzn;
    • 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 Lkj;e:Ljava/lang/String;
    • changedComponents

      final Reference2ObjectMap<DataComponentType<?>,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 Lkj;d:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
  • Constructor Details

    • ComponentChanges

      ComponentChanges(Reference2ObjectMap<DataComponentType<?>,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> Lkj;<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 Lkj;a()Lkj$a;
    • get

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

      public Set<Map.Entry<DataComponentType<?>,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 Lkj;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 Lkj;c()I
    • withRemovedIf

      public ComponentChanges withRemovedIf(Predicate<DataComponentType<?>> 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 Lkj;a(Ljava/util/function/Predicate;)Lkj;
    • 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 Lkj;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 Lkj;e()Lkj$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 Lkj;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<DataComponentType<?>,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 Lkj;a(Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)Ljava/lang/String;