Uses of Class
net.minecraft.component.type.NbtComponent
Packages that use NbtComponent
Package
Description
-
Uses of NbtComponent in net.minecraft.block.entity
Fields in net.minecraft.block.entity declared as NbtComponentModifier and TypeFieldDescriptionprivate final NbtComponent
BeehiveBlockEntity.BeeData.entityData
The field for theentityData
record component.Methods in net.minecraft.block.entity that return NbtComponentModifier and TypeMethodDescriptionBeehiveBlockEntity.BeeData.entityData()
Returns the value of theentityData
record component.Constructors in net.minecraft.block.entity with parameters of type NbtComponent -
Uses of NbtComponent in net.minecraft.component
Fields in net.minecraft.component with type parameters of type NbtComponentModifier and TypeFieldDescriptionstatic final ComponentType
<NbtComponent> DataComponentTypes.BLOCK_ENTITY_DATA
static final ComponentType
<NbtComponent> DataComponentTypes.BUCKET_ENTITY_DATA
static final ComponentType
<NbtComponent> DataComponentTypes.CUSTOM_DATA
static final ComponentType
<NbtComponent> DataComponentTypes.ENTITY_DATA
-
Uses of NbtComponent in net.minecraft.component.type
Fields in net.minecraft.component.type declared as NbtComponentFields in net.minecraft.component.type with type parameters of type NbtComponentModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<NbtComponent> NbtComponent.CODEC
static final com.mojang.serialization.Codec
<NbtComponent> NbtComponent.CODEC_WITH_ID
static final PacketCodec
<ByteBuf, NbtComponent> NbtComponent.PACKET_CODEC
Deprecated.Methods in net.minecraft.component.type that return NbtComponentModifier and TypeMethodDescriptionNbtComponent.apply
(Consumer<NbtCompound> nbtConsumer) static NbtComponent
NbtComponent.of
(NbtCompound nbt) Methods in net.minecraft.component.type that return types with arguments of type NbtComponentModifier and TypeMethodDescription<T> com.mojang.serialization.DataResult
<NbtComponent> NbtComponent.with
(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.MapEncoder<T> encoder, T value) Method parameters in net.minecraft.component.type with type arguments of type NbtComponentModifier and TypeMethodDescriptionNbtComponent.createPredicate
(ComponentType<NbtComponent> type, NbtCompound nbt) static void
NbtComponent.set
(ComponentType<NbtComponent> type, ItemStack stack, Consumer<NbtCompound> nbtSetter) static void
NbtComponent.set
(ComponentType<NbtComponent> type, ItemStack stack, NbtCompound nbt) -
Uses of NbtComponent in net.minecraft.entity
Methods in net.minecraft.entity with parameters of type NbtComponentModifier and TypeMethodDescriptionstatic void
EntityType.loadFromEntityNbt
(World world, @Nullable PlayerEntity player, @Nullable Entity entity, NbtComponent nbt)