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 kn
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
static class
private static final record
-
Field Summary
Modifier and TypeFieldDescription(package private) final Reference2ObjectMap
<ComponentType<?>, Optional<?>> static final com.mojang.serialization.Codec
<ComponentChanges> static final ComponentChanges
static final PacketCodec
<RegistryByteBuf, ComponentChanges> private static final String
-
Constructor Summary
ConstructorDescriptionComponentChanges
(Reference2ObjectMap<ComponentType<?>, Optional<?>> changedComponents) -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentChanges.Builder
builder()
Set
<Map.Entry<ComponentType<?>, Optional<?>>> entrySet()
boolean
get
(ComponentType<? extends T> type) int
hashCode()
boolean
isEmpty()
int
size()
toString()
(package private) static String
toString
(Reference2ObjectMap<ComponentType<?>, Optional<?>> changes) withRemovedIf
(Predicate<ComponentType<?>> 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
Lkn;a:Lkn;
-
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
Lkn;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
Lkn;c:Lyx;
-
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
Lkn;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
Lkn;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;)V
intermediary <init>
Lnet/minecraft/class_9326;<init>(Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)V
official <init>
Lkn;<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
Lkn;a()Lkn$a;
-
get
- Mappings:
Namespace Name Mixin selector named get
Lnet/minecraft/component/ComponentChanges;get(Lnet/minecraft/component/ComponentType;)Ljava/util/Optional;
intermediary method_57845
Lnet/minecraft/class_9326;method_57845(Lnet/minecraft/class_9331;)Ljava/util/Optional;
official a
Lkn;a(Lkp;)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
Lkn;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
Lkn;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
Lkn;a(Ljava/util/function/Predicate;)Lkn;
-
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
Lkn;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
Lkn;e()Lkn$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
Lkn;a(Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)Ljava/lang/String;
-