Interface NbtDataSource

All Known Implementing Classes:
BlockNbtDataSource, EntityNbtDataSource, StorageNbtDataSource

public interface NbtDataSource
A data source for the NBT text content. Unmodifiable.
Mappings:
Namespace Name
official wh
intermediary net/minecraft/class_7419
named net/minecraft/text/NbtDataSource
  • Field Details

    • CODEC

      static final com.mojang.serialization.MapCodec<NbtDataSource> CODEC
      Mappings:
      Namespace Name Mixin selector
      official c Lwh;c:Lcom/mojang/serialization/MapCodec;
      intermediary field_46616 Lnet/minecraft/class_7419;field_46616:Lcom/mojang/serialization/MapCodec;
      named CODEC Lnet/minecraft/text/NbtDataSource;CODEC:Lcom/mojang/serialization/MapCodec;
  • Method Details

    • get

      Stream<NbtCompound> get(ServerCommandSource source) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lwh;a(Lds;)Ljava/util/stream/Stream;
      intermediary method_10916 Lnet/minecraft/class_7419;method_10916(Lnet/minecraft/class_2168;)Ljava/util/stream/Stream;
      named get Lnet/minecraft/text/NbtDataSource;get(Lnet/minecraft/server/command/ServerCommandSource;)Ljava/util/stream/Stream;
    • getType

      NbtDataSource.Type<?> getType()
      Mappings:
      Namespace Name Mixin selector
      official a Lwh;a()Lwh$a;
      intermediary method_54225 Lnet/minecraft/class_7419;method_54225()Lnet/minecraft/class_7419$class_8827;
      named getType Lnet/minecraft/text/NbtDataSource;getType()Lnet/minecraft/text/NbtDataSource$Type;