Package net.minecraft.component.type
Class NbtComponent
java.lang.Object
net.minecraft.component.type.NbtComponent
- Mappings:
Namespace Name named net/minecraft/component/type/NbtComponentintermediary net/minecraft/class_9279official dmp
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<NbtComponent> static final com.mojang.serialization.Codec<NbtCompound> static final NbtComponentprivate final NbtCompoundstatic final PacketCodec<ByteBuf, NbtComponent> Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(Consumer<NbtCompound> nbtConsumer) copyNbt()booleaninthashCode()booleanisEmpty()booleanmatches(NbtCompound nbt) static NbtComponentof(NbtCompound nbt) static voidset(ComponentType<NbtComponent> type, ItemStack stack, Consumer<NbtCompound> nbtSetter) static voidset(ComponentType<NbtComponent> type, ItemStack stack, NbtCompound nbt) toString()
-
Field Details
-
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/component/type/NbtComponent;DEFAULT:Lnet/minecraft/component/type/NbtComponent;intermediary field_49302Lnet/minecraft/class_9279;field_49302:Lnet/minecraft/class_9279;official aLdmp;a:Ldmp;
-
COMPOUND_CODEC
- Mappings:
Namespace Name Mixin selector named COMPOUND_CODECLnet/minecraft/component/type/NbtComponent;COMPOUND_CODEC:Lcom/mojang/serialization/Codec;intermediary field_61351Lnet/minecraft/class_9279;field_61351:Lcom/mojang/serialization/Codec;official bLdmp;b:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/component/type/NbtComponent;CODEC:Lcom/mojang/serialization/Codec;intermediary field_49303Lnet/minecraft/class_9279;field_49303:Lcom/mojang/serialization/Codec;official cLdmp;c:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
Deprecated.- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/component/type/NbtComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_49305Lnet/minecraft/class_9279;field_49305:Lnet/minecraft/class_9139;official dLdmp;d:Laat;
-
nbt
- Mappings:
Namespace Name Mixin selector named nbtLnet/minecraft/component/type/NbtComponent;nbt:Lnet/minecraft/nbt/NbtCompound;intermediary field_49306Lnet/minecraft/class_9279;field_49306:Lnet/minecraft/class_2487;official eLdmp;e:Lve;
-
-
Constructor Details
-
NbtComponent
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/component/type/NbtComponent;<init>(Lnet/minecraft/nbt/NbtCompound;)Vintermediary <init>Lnet/minecraft/class_9279;<init>(Lnet/minecraft/class_2487;)Vofficial <init>Ldmp;<init>(Lve;)V
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector named ofLnet/minecraft/component/type/NbtComponent;of(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/component/type/NbtComponent;intermediary method_57456Lnet/minecraft/class_9279;method_57456(Lnet/minecraft/class_2487;)Lnet/minecraft/class_9279;official aLdmp;a(Lve;)Ldmp;
-
matches
- Mappings:
Namespace Name Mixin selector named matchesLnet/minecraft/component/type/NbtComponent;matches(Lnet/minecraft/nbt/NbtCompound;)Zintermediary method_57460Lnet/minecraft/class_9279;method_57460(Lnet/minecraft/class_2487;)Zofficial bLdmp;b(Lve;)Z
-
set
public static void set(ComponentType<NbtComponent> type, ItemStack stack, Consumer<NbtCompound> nbtSetter) - Mappings:
Namespace Name Mixin selector named setLnet/minecraft/component/type/NbtComponent;set(Lnet/minecraft/component/ComponentType;Lnet/minecraft/item/ItemStack;Ljava/util/function/Consumer;)Vintermediary method_57452Lnet/minecraft/class_9279;method_57452(Lnet/minecraft/class_9331;Lnet/minecraft/class_1799;Ljava/util/function/Consumer;)Vofficial aLdmp;a(Lkn;Ldkf;Ljava/util/function/Consumer;)V
-
set
- Mappings:
Namespace Name Mixin selector named setLnet/minecraft/component/type/NbtComponent;set(Lnet/minecraft/component/ComponentType;Lnet/minecraft/item/ItemStack;Lnet/minecraft/nbt/NbtCompound;)Vintermediary method_57453Lnet/minecraft/class_9279;method_57453(Lnet/minecraft/class_9331;Lnet/minecraft/class_1799;Lnet/minecraft/class_2487;)Vofficial aLdmp;a(Lkn;Ldkf;Lve;)V
-
apply
- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/component/type/NbtComponent;apply(Ljava/util/function/Consumer;)Lnet/minecraft/component/type/NbtComponent;intermediary method_57451Lnet/minecraft/class_9279;method_57451(Ljava/util/function/Consumer;)Lnet/minecraft/class_9279;official aLdmp;a(Ljava/util/function/Consumer;)Ldmp;
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector named isEmptyLnet/minecraft/component/type/NbtComponent;isEmpty()Zintermediary method_57458Lnet/minecraft/class_9279;method_57458()Zofficial aLdmp;a()Z
-
copyNbt
- Mappings:
Namespace Name Mixin selector named copyNbtLnet/minecraft/component/type/NbtComponent;copyNbt()Lnet/minecraft/nbt/NbtCompound;intermediary method_57461Lnet/minecraft/class_9279;method_57461()Lnet/minecraft/class_2487;official bLdmp;b()Lve;
-
equals
-
hashCode
public int hashCode() -
toString
-