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 jy
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final recordprivate 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()method_58757(Predicate<DataComponentType<?>> predicate) intsize()toString()(package private) static StringtoString(Reference2ObjectMap<DataComponentType<?>, Optional<?>> changes)
-
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 aLjy;a:Ljy;
-
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 bLjy;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 cLjy;c:Lyv;
-
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 eLjy;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 dLjy;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;)Vintermediary <init>Lnet/minecraft/class_9326;<init>(Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)Vofficial <init>Ljy;<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 aLjy;a()Ljy$a;
-
get
- Mappings:
Namespace Name Mixin selector named getLnet/minecraft/component/ComponentChanges;get(Lnet/minecraft/component/DataComponentType;)Ljava/util/Optional;intermediary method_57845Lnet/minecraft/class_9326;method_57845(Lnet/minecraft/class_9331;)Ljava/util/Optional;official aLjy;a(Lka;)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 bLjy;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 cLjy;c()I
-
method_58757
- Mappings:
Namespace Name Mixin selector named method_58757Lnet/minecraft/component/ComponentChanges;method_58757(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 aLjy;a(Ljava/util/function/Predicate;)Ljy;
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector named isEmptyLnet/minecraft/component/ComponentChanges;isEmpty()Zintermediary method_57848Lnet/minecraft/class_9326;method_57848()Zofficial dLjy;d()Z
-
method_58759
- Mappings:
Namespace Name Mixin selector named method_58759Lnet/minecraft/component/ComponentChanges;method_58759()Lnet/minecraft/component/ComponentChanges$class_9484;intermediary method_58759Lnet/minecraft/class_9326;method_58759()Lnet/minecraft/class_9326$class_9484;official eLjy;e()Ljy$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 aLjy;a(Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)Ljava/lang/String;
-