Package net.minecraft.component
Class ComponentChanges
java.lang.Object
net.minecraft.component.ComponentChanges
- Mappings:
Namespace Name official jointermediary net/minecraft/class_9326named net/minecraft/component/ComponentChanges
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprivate static final record -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Reference2ObjectMap<DataComponentType<?>, Optional<?>> static final com.mojang.serialization.Codec<ComponentChanges> static final ComponentChangesstatic final PacketCodec<RegistryByteBuf, ComponentChanges> private static final String -
Constructor Summary
ConstructorsConstructorDescriptionComponentChanges(Reference2ObjectMap<DataComponentType<?>, Optional<?>> changedComponents) -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentChanges.Builderbuilder()Set<Map.Entry<DataComponentType<?>, Optional<?>>> entrySet()booleanget(DataComponentType<? extends T> type) inthashCode()booleanisEmpty()intsize()toString()(package private) static StringtoString(Reference2ObjectMap<DataComponentType<?>, Optional<?>> changes)
-
Field Details
-
EMPTY
- Mappings:
Namespace Name Mixin selector official aLjo;a:Ljo;intermediary field_49588Lnet/minecraft/class_9326;field_49588:Lnet/minecraft/class_9326;named EMPTYLnet/minecraft/component/ComponentChanges;EMPTY:Lnet/minecraft/component/ComponentChanges;
-
CODEC
- Mappings:
Namespace Name Mixin selector official bLjo;b:Lcom/mojang/serialization/Codec;intermediary field_49589Lnet/minecraft/class_9326;field_49589:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/component/ComponentChanges;CODEC:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector official cLjo;c:Lyg;intermediary field_49590Lnet/minecraft/class_9326;field_49590:Lnet/minecraft/class_9139;named PACKET_CODECLnet/minecraft/component/ComponentChanges;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
-
REMOVE_PREFIX
- See Also:
- Mappings:
Namespace Name Mixin selector official eLjo;e:Ljava/lang/String;intermediary field_49592Lnet/minecraft/class_9326;field_49592:Ljava/lang/String;named REMOVE_PREFIXLnet/minecraft/component/ComponentChanges;REMOVE_PREFIX:Ljava/lang/String;
-
changedComponents
- Mappings:
Namespace Name Mixin selector official dLjo;d:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;intermediary field_49591Lnet/minecraft/class_9326;field_49591:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;named changedComponentsLnet/minecraft/component/ComponentChanges;changedComponents:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
-
-
Constructor Details
-
ComponentChanges
ComponentChanges(Reference2ObjectMap<DataComponentType<?>, Optional<?>> changedComponents) - Mappings:
Namespace Name Mixin selector official <init>Ljo;<init>(Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)Vintermediary <init>Lnet/minecraft/class_9326;<init>(Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)Vnamed <init>Lnet/minecraft/component/ComponentChanges;<init>(Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)V
-
-
Method Details
-
builder
- Mappings:
Namespace Name Mixin selector official aLjo;a()Ljo$a;intermediary method_57841Lnet/minecraft/class_9326;method_57841()Lnet/minecraft/class_9326$class_9327;named builderLnet/minecraft/component/ComponentChanges;builder()Lnet/minecraft/component/ComponentChanges$Builder;
-
get
- Mappings:
Namespace Name Mixin selector official aLjo;a(Ljq;)Ljava/util/Optional;intermediary method_57845Lnet/minecraft/class_9326;method_57845(Lnet/minecraft/class_9331;)Ljava/util/Optional;named getLnet/minecraft/component/ComponentChanges;get(Lnet/minecraft/component/DataComponentType;)Ljava/util/Optional;
-
entrySet
- Mappings:
Namespace Name Mixin selector official bLjo;b()Ljava/util/Set;intermediary method_57846Lnet/minecraft/class_9326;method_57846()Ljava/util/Set;named entrySetLnet/minecraft/component/ComponentChanges;entrySet()Ljava/util/Set;
-
size
public int size()- Mappings:
Namespace Name Mixin selector official cLjo;c()Iintermediary method_57847Lnet/minecraft/class_9326;method_57847()Inamed sizeLnet/minecraft/component/ComponentChanges;size()I
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector official dLjo;d()Zintermediary method_57848Lnet/minecraft/class_9326;method_57848()Znamed isEmptyLnet/minecraft/component/ComponentChanges;isEmpty()Z
-
equals
-
hashCode
public int hashCode() -
toString
-
toString
- Mappings:
Namespace Name Mixin selector official aLjo;a(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;named toStringLnet/minecraft/component/ComponentChanges;toString(Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)Ljava/lang/String;
-