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 NbtComponentBeehiveBlockEntity.BeeData.entityDataThe field for theentityDatarecord component.Methods in net.minecraft.block.entity that return NbtComponentModifier and TypeMethodDescriptionBeehiveBlockEntity.BeeData.entityData()Returns the value of theentityDatarecord 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_DATAstatic final ComponentType<NbtComponent> DataComponentTypes.BUCKET_ENTITY_DATAstatic final ComponentType<NbtComponent> DataComponentTypes.CUSTOM_DATAstatic 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.CODECstatic final com.mojang.serialization.Codec<NbtComponent> NbtComponent.CODEC_WITH_IDstatic final PacketCodec<ByteBuf, NbtComponent> NbtComponent.PACKET_CODECDeprecated.Methods in net.minecraft.component.type that return NbtComponentModifier and TypeMethodDescriptionNbtComponent.apply(Consumer<NbtCompound> nbtConsumer) static NbtComponentNbtComponent.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 voidNbtComponent.set(ComponentType<NbtComponent> type, ItemStack stack, Consumer<NbtCompound> nbtSetter) static voidNbtComponent.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 voidEntityType.loadFromEntityNbt(World world, @Nullable PlayerEntity player, @Nullable Entity entity, NbtComponent nbt)