Package net.minecraft.component.type
Class NbtComponent
java.lang.Object
net.minecraft.component.type.NbtComponent
- Mappings:
Namespace Name named net/minecraft/component/type/NbtComponent
intermediary net/minecraft/class_9279
official czx
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<NbtComponent> static final com.mojang.serialization.Codec
<NbtComponent> static final NbtComponent
private static final Logger
private final NbtCompound
static final PacketCodec
<ByteBuf, NbtComponent> Deprecated. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(Consumer<NbtCompound> nbtConsumer) boolean
applyToBlockEntity
(BlockEntity blockEntity, RegistryWrapper.WrapperLookup registries) void
applyToEntity
(Entity entity) boolean
copyNbt()
createPredicate
(ComponentType<NbtComponent> type, NbtCompound nbt) boolean
<T> com.mojang.serialization.DataResult
<T> get
(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.MapDecoder<T> decoder) <T> com.mojang.serialization.DataResult
<T> get
(com.mojang.serialization.MapDecoder<T> decoder) getNbt()
Deprecated.int
getSize()
int
hashCode()
boolean
isEmpty()
boolean
matches
(NbtCompound nbt) static NbtComponent
of
(NbtCompound nbt) static void
set
(ComponentType<NbtComponent> type, ItemStack stack, Consumer<NbtCompound> nbtSetter) static void
set
(ComponentType<NbtComponent> type, ItemStack stack, NbtCompound nbt) toString()
<T> com.mojang.serialization.DataResult
<NbtComponent> with
(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.MapEncoder<T> encoder, T value)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/component/type/NbtComponent;LOGGER:Lorg/slf4j/Logger;
intermediary field_51522
Lnet/minecraft/class_9279;field_51522:Lorg/slf4j/Logger;
official e
Lczx;e:Lorg/slf4j/Logger;
-
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULT
Lnet/minecraft/component/type/NbtComponent;DEFAULT:Lnet/minecraft/component/type/NbtComponent;
intermediary field_49302
Lnet/minecraft/class_9279;field_49302:Lnet/minecraft/class_9279;
official a
Lczx;a:Lczx;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/component/type/NbtComponent;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_49303
Lnet/minecraft/class_9279;field_49303:Lcom/mojang/serialization/Codec;
official b
Lczx;b:Lcom/mojang/serialization/Codec;
-
CODEC_WITH_ID
- Mappings:
Namespace Name Mixin selector named CODEC_WITH_ID
Lnet/minecraft/component/type/NbtComponent;CODEC_WITH_ID:Lcom/mojang/serialization/Codec;
intermediary field_49304
Lnet/minecraft/class_9279;field_49304:Lcom/mojang/serialization/Codec;
official c
Lczx;c:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
Deprecated.- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/component/type/NbtComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_49305
Lnet/minecraft/class_9279;field_49305:Lnet/minecraft/class_9139;
official d
Lczx;d:Lzt;
-
nbt
- Mappings:
Namespace Name Mixin selector named nbt
Lnet/minecraft/component/type/NbtComponent;nbt:Lnet/minecraft/nbt/NbtCompound;
intermediary field_49306
Lnet/minecraft/class_9279;field_49306:Lnet/minecraft/class_2487;
official f
Lczx;f:Lux;
-
-
Constructor Details
-
NbtComponent
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/component/type/NbtComponent;<init>(Lnet/minecraft/nbt/NbtCompound;)V
intermediary <init>
Lnet/minecraft/class_9279;<init>(Lnet/minecraft/class_2487;)V
official <init>
Lczx;<init>(Lux;)V
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector named of
Lnet/minecraft/component/type/NbtComponent;of(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/component/type/NbtComponent;
intermediary method_57456
Lnet/minecraft/class_9279;method_57456(Lnet/minecraft/class_2487;)Lnet/minecraft/class_9279;
official a
Lczx;a(Lux;)Lczx;
-
createPredicate
public static Predicate<ItemStack> createPredicate(ComponentType<NbtComponent> type, NbtCompound nbt) - Mappings:
Namespace Name Mixin selector named createPredicate
Lnet/minecraft/component/type/NbtComponent;createPredicate(Lnet/minecraft/component/ComponentType;Lnet/minecraft/nbt/NbtCompound;)Ljava/util/function/Predicate;
intermediary method_57454
Lnet/minecraft/class_9279;method_57454(Lnet/minecraft/class_9331;Lnet/minecraft/class_2487;)Ljava/util/function/Predicate;
official a
Lczx;a(Lkt;Lux;)Ljava/util/function/Predicate;
-
matches
- Mappings:
Namespace Name Mixin selector named matches
Lnet/minecraft/component/type/NbtComponent;matches(Lnet/minecraft/nbt/NbtCompound;)Z
intermediary method_57460
Lnet/minecraft/class_9279;method_57460(Lnet/minecraft/class_2487;)Z
official b
Lczx;b(Lux;)Z
-
set
public static void set(ComponentType<NbtComponent> type, ItemStack stack, Consumer<NbtCompound> nbtSetter) - Mappings:
Namespace Name Mixin selector named set
Lnet/minecraft/component/type/NbtComponent;set(Lnet/minecraft/component/ComponentType;Lnet/minecraft/item/ItemStack;Ljava/util/function/Consumer;)V
intermediary method_57452
Lnet/minecraft/class_9279;method_57452(Lnet/minecraft/class_9331;Lnet/minecraft/class_1799;Ljava/util/function/Consumer;)V
official a
Lczx;a(Lkt;Lcxo;Ljava/util/function/Consumer;)V
-
set
- Mappings:
Namespace Name Mixin selector named set
Lnet/minecraft/component/type/NbtComponent;set(Lnet/minecraft/component/ComponentType;Lnet/minecraft/item/ItemStack;Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_57453
Lnet/minecraft/class_9279;method_57453(Lnet/minecraft/class_9331;Lnet/minecraft/class_1799;Lnet/minecraft/class_2487;)V
official a
Lczx;a(Lkt;Lcxo;Lux;)V
-
apply
- Mappings:
Namespace Name Mixin selector named apply
Lnet/minecraft/component/type/NbtComponent;apply(Ljava/util/function/Consumer;)Lnet/minecraft/component/type/NbtComponent;
intermediary method_57451
Lnet/minecraft/class_9279;method_57451(Ljava/util/function/Consumer;)Lnet/minecraft/class_9279;
official a
Lczx;a(Ljava/util/function/Consumer;)Lczx;
-
applyToEntity
- Mappings:
Namespace Name Mixin selector named applyToEntity
Lnet/minecraft/component/type/NbtComponent;applyToEntity(Lnet/minecraft/entity/Entity;)V
intermediary method_57445
Lnet/minecraft/class_9279;method_57445(Lnet/minecraft/class_1297;)V
official a
Lczx;a(Lbvj;)V
-
applyToBlockEntity
public boolean applyToBlockEntity(BlockEntity blockEntity, RegistryWrapper.WrapperLookup registries) - Mappings:
Namespace Name Mixin selector named applyToBlockEntity
Lnet/minecraft/component/type/NbtComponent;applyToBlockEntity(Lnet/minecraft/block/entity/BlockEntity;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Z
intermediary method_57449
Lnet/minecraft/class_9279;method_57449(Lnet/minecraft/class_2586;Lnet/minecraft/class_7225$class_7874;)Z
official a
Lczx;a(Lduw;Ljs$a;)Z
-
with
public <T> com.mojang.serialization.DataResult<NbtComponent> with(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.MapEncoder<T> encoder, T value) - Mappings:
Namespace Name Mixin selector named with
Lnet/minecraft/component/type/NbtComponent;with(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/MapEncoder;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
intermediary method_57447
Lnet/minecraft/class_9279;method_57447(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/MapEncoder;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
official a
Lczx;a(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/MapEncoder;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
-
get
public <T> com.mojang.serialization.DataResult<T> get(com.mojang.serialization.MapDecoder<T> decoder) - Mappings:
Namespace Name Mixin selector named get
Lnet/minecraft/component/type/NbtComponent;get(Lcom/mojang/serialization/MapDecoder;)Lcom/mojang/serialization/DataResult;
intermediary method_57446
Lnet/minecraft/class_9279;method_57446(Lcom/mojang/serialization/MapDecoder;)Lcom/mojang/serialization/DataResult;
official a
Lczx;a(Lcom/mojang/serialization/MapDecoder;)Lcom/mojang/serialization/DataResult;
-
get
public <T> com.mojang.serialization.DataResult<T> get(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.MapDecoder<T> decoder) - Mappings:
Namespace Name Mixin selector named get
Lnet/minecraft/component/type/NbtComponent;get(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/MapDecoder;)Lcom/mojang/serialization/DataResult;
intermediary method_59980
Lnet/minecraft/class_9279;method_59980(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/MapDecoder;)Lcom/mojang/serialization/DataResult;
official a
Lczx;a(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/MapDecoder;)Lcom/mojang/serialization/DataResult;
-
getSize
public int getSize()- Mappings:
Namespace Name Mixin selector named getSize
Lnet/minecraft/component/type/NbtComponent;getSize()I
intermediary method_57444
Lnet/minecraft/class_9279;method_57444()I
official a
Lczx;a()I
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector named isEmpty
Lnet/minecraft/component/type/NbtComponent;isEmpty()Z
intermediary method_57458
Lnet/minecraft/class_9279;method_57458()Z
official b
Lczx;b()Z
-
copyNbt
- Mappings:
Namespace Name Mixin selector named copyNbt
Lnet/minecraft/component/type/NbtComponent;copyNbt()Lnet/minecraft/nbt/NbtCompound;
intermediary method_57461
Lnet/minecraft/class_9279;method_57461()Lnet/minecraft/class_2487;
official c
Lczx;c()Lux;
-
contains
- Mappings:
Namespace Name Mixin selector named contains
Lnet/minecraft/component/type/NbtComponent;contains(Ljava/lang/String;)Z
intermediary method_57450
Lnet/minecraft/class_9279;method_57450(Ljava/lang/String;)Z
official a
Lczx;a(Ljava/lang/String;)Z
-
equals
-
hashCode
public int hashCode() -
toString
-
getNbt
Deprecated.- Mappings:
Namespace Name Mixin selector named getNbt
Lnet/minecraft/component/type/NbtComponent;getNbt()Lnet/minecraft/nbt/NbtCompound;
intermediary method_57463
Lnet/minecraft/class_9279;method_57463()Lnet/minecraft/class_2487;
official d
Lczx;d()Lux;
-