java.lang.Object
com.github.retrooper.packetevents.util.adventure.NbtTagHolder
All Implemented Interfaces:
net.kyori.adventure.nbt.api.BinaryTagHolder, net.kyori.adventure.text.event.DataComponentValue, net.kyori.adventure.text.event.DataComponentValue.TagSerializable, net.kyori.examination.Examinable

@NullMarked public final class NbtTagHolder extends Object implements net.kyori.adventure.nbt.api.BinaryTagHolder
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.kyori.adventure.text.event.DataComponentValue

    net.kyori.adventure.text.event.DataComponentValue.Removed, net.kyori.adventure.text.event.DataComponentValue.TagSerializable
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T, DX extends Exception>
    T
    get(@NotNull net.kyori.adventure.util.Codec<T,String,DX,?> codec)
     
     
    @NotNull String
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.kyori.adventure.nbt.api.BinaryTagHolder

    asBinaryTag

    Methods inherited from interface net.kyori.examination.Examinable

    examinableName, examinableProperties, examine
  • Constructor Details

    • NbtTagHolder

      public NbtTagHolder(NBT tag)
  • Method Details

    • string

      @NotNull public @NotNull String string()
      Specified by:
      string in interface net.kyori.adventure.nbt.api.BinaryTagHolder
    • get

      @NotNull public <T, DX extends Exception> T get(@NotNull @NotNull net.kyori.adventure.util.Codec<T,String,DX,?> codec) throws DX
      Specified by:
      get in interface net.kyori.adventure.nbt.api.BinaryTagHolder
      Throws:
      DX
    • getTag

      public NBT getTag()