Interface NbtWrapper<TType>

Type Parameters:
TType - - type of the value that is stored.
All Superinterfaces:
ClonableWrapper, NbtBase<TType>

public interface NbtWrapper<TType> extends NbtBase<TType>, ClonableWrapper
Indicates that this NBT wraps an underlying net.minecraft.server instance.

Use NbtFactory to load or create instances.

  • Method Details

    • getHandle

      Object getHandle()
      Retrieve the underlying net.minecraft.server instance.
      Specified by:
      getHandle in interface ClonableWrapper
      Specified by:
      getHandle in interface NbtBase<TType>
      Returns:
      The NMS instance.
    • write

      void write(DataOutput destination)
      Write the current NBT tag to an output stream.
      Parameters:
      destination - - the destination stream.