Package net.minecraft.component
Class ComponentChanges
java.lang.Object
net.minecraft.component.ComponentChanges
- Mappings:
Namespace Name named net/minecraft/component/ComponentChanges
intermediary net/minecraft/class_9326
official kj
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
static class
private static final record
-
Field Summary
Modifier and TypeFieldDescription(package private) final Reference2ObjectMap
<DataComponentType<?>, Optional<?>> static final com.mojang.serialization.Codec
<ComponentChanges> static final ComponentChanges
static final PacketCodec
<RegistryByteBuf, ComponentChanges> private static final String
-
Constructor Summary
ConstructorDescriptionComponentChanges
(Reference2ObjectMap<DataComponentType<?>, Optional<?>> changedComponents) -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentChanges.Builder
builder()
Set
<Map.Entry<DataComponentType<?>, Optional<?>>> entrySet()
boolean
get
(DataComponentType<? extends T> type) int
hashCode()
boolean
isEmpty()
int
size()
toString()
(package private) static String
toString
(Reference2ObjectMap<DataComponentType<?>, Optional<?>> changes) withRemovedIf
(Predicate<DataComponentType<?>> removedTypePredicate)
-
Field Details
-
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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
-
hashCode
public int hashCode() -
toString
-
toString
- 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;
-