Package net.minecraft.component
Class ComponentChanges
java.lang.Object
net.minecraft.component.ComponentChanges
- Mappings:
 Namespace Name named net/minecraft/component/ComponentChangesintermediary net/minecraft/class_9326official kn
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic classprivate static final record - 
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Reference2ObjectMap<ComponentType<?>, Optional<?>> static final com.mojang.serialization.Codec<ComponentChanges> static final ComponentChangesstatic final PacketCodec<RegistryByteBuf, ComponentChanges> private static final String - 
Constructor Summary
ConstructorsConstructorDescriptionComponentChanges(Reference2ObjectMap<ComponentType<?>, Optional<?>> changedComponents)  - 
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentChanges.Builderbuilder()Set<Map.Entry<ComponentType<?>, Optional<?>>> entrySet()booleanget(ComponentType<? extends T> type) inthashCode()booleanisEmpty()intsize()toString()(package private) static StringtoString(Reference2ObjectMap<ComponentType<?>, Optional<?>> changes) withRemovedIf(Predicate<ComponentType<?>> removedTypePredicate)  
- 
Field Details
- 
EMPTY
- Mappings:
 Namespace Name Mixin selector named EMPTYLnet/minecraft/component/ComponentChanges;EMPTY:Lnet/minecraft/component/ComponentChanges;intermediary field_49588Lnet/minecraft/class_9326;field_49588:Lnet/minecraft/class_9326;official aLkn;a:Lkn;
 - 
CODEC
- Mappings:
 Namespace Name Mixin selector named CODECLnet/minecraft/component/ComponentChanges;CODEC:Lcom/mojang/serialization/Codec;intermediary field_49589Lnet/minecraft/class_9326;field_49589:Lcom/mojang/serialization/Codec;official bLkn;b:Lcom/mojang/serialization/Codec;
 - 
PACKET_CODEC
- Mappings:
 Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/component/ComponentChanges;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_49590Lnet/minecraft/class_9326;field_49590:Lnet/minecraft/class_9139;official cLkn;c:Lyx;
 - 
REMOVE_PREFIX
- See Also:
 - Mappings:
 Namespace Name Mixin selector named REMOVE_PREFIXLnet/minecraft/component/ComponentChanges;REMOVE_PREFIX:Ljava/lang/String;intermediary field_49592Lnet/minecraft/class_9326;field_49592:Ljava/lang/String;official eLkn;e:Ljava/lang/String;
 - 
changedComponents
- Mappings:
 Namespace Name Mixin selector named changedComponentsLnet/minecraft/component/ComponentChanges;changedComponents:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;intermediary field_49591Lnet/minecraft/class_9326;field_49591:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;official dLkn;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;)Vintermediary <init>Lnet/minecraft/class_9326;<init>(Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)Vofficial <init>Lkn;<init>(Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)V
 
 - 
 - 
Method Details
- 
builder
- Mappings:
 Namespace Name Mixin selector named builderLnet/minecraft/component/ComponentChanges;builder()Lnet/minecraft/component/ComponentChanges$Builder;intermediary method_57841Lnet/minecraft/class_9326;method_57841()Lnet/minecraft/class_9326$class_9327;official aLkn;a()Lkn$a;
 - 
get
- Mappings:
 Namespace Name Mixin selector named getLnet/minecraft/component/ComponentChanges;get(Lnet/minecraft/component/ComponentType;)Ljava/util/Optional;intermediary method_57845Lnet/minecraft/class_9326;method_57845(Lnet/minecraft/class_9331;)Ljava/util/Optional;official aLkn;a(Lkp;)Ljava/util/Optional;
 - 
entrySet
- Mappings:
 Namespace Name Mixin selector named entrySetLnet/minecraft/component/ComponentChanges;entrySet()Ljava/util/Set;intermediary method_57846Lnet/minecraft/class_9326;method_57846()Ljava/util/Set;official bLkn;b()Ljava/util/Set;
 - 
size
public int size()- Mappings:
 Namespace Name Mixin selector named sizeLnet/minecraft/component/ComponentChanges;size()Iintermediary method_57847Lnet/minecraft/class_9326;method_57847()Iofficial cLkn;c()I
 - 
withRemovedIf
- Mappings:
 Namespace Name Mixin selector named withRemovedIfLnet/minecraft/component/ComponentChanges;withRemovedIf(Ljava/util/function/Predicate;)Lnet/minecraft/component/ComponentChanges;intermediary method_58757Lnet/minecraft/class_9326;method_58757(Ljava/util/function/Predicate;)Lnet/minecraft/class_9326;official aLkn;a(Ljava/util/function/Predicate;)Lkn;
 - 
isEmpty
public boolean isEmpty()- Mappings:
 Namespace Name Mixin selector named isEmptyLnet/minecraft/component/ComponentChanges;isEmpty()Zintermediary method_57848Lnet/minecraft/class_9326;method_57848()Zofficial dLkn;d()Z
 - 
toAddedRemovedPair
- Mappings:
 Namespace Name Mixin selector named toAddedRemovedPairLnet/minecraft/component/ComponentChanges;toAddedRemovedPair()Lnet/minecraft/component/ComponentChanges$AddedRemovedPair;intermediary method_58759Lnet/minecraft/class_9326;method_58759()Lnet/minecraft/class_9326$class_9484;official eLkn;e()Lkn$c;
 - 
equals
 - 
hashCode
public int hashCode() - 
toString
 - 
toString
- Mappings:
 Namespace Name Mixin selector named toStringLnet/minecraft/component/ComponentChanges;toString(Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)Ljava/lang/String;intermediary method_57842Lnet/minecraft/class_9326;method_57842(Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)Ljava/lang/String;official aLkn;a(Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)Ljava/lang/String;
 
 -