Class LinBusConverter

java.lang.Object
com.sk89q.jnbt.LinBusConverter

@Deprecated public class LinBusConverter extends Object
Deprecated.
JNBT is being removed in WE8.
Converts between JNBT and lin-bus classes.
  • Method Details

    • toJnbtTag

      public static <V, LT extends org.enginehub.linbus.tree.LinTag<? extends V>> Tag<V,LT> toJnbtTag(LT tag)
      Deprecated.
      Convert the given lin-bus tag to a legacy JNBT tag. If you know the specific type of the lin-bus tag, you should just construct the legacy tag directly.
      Type Parameters:
      V - the type of the lin-bus tag's value
      LT - the type of the lin-bus tag
      Parameters:
      tag - the lin-bus tag
      Returns:
      the corresponding legacy JNBT tag
    • convertStream

      public static org.enginehub.linbus.stream.LinStream convertStream(NBTInputStream inputStream)
      Deprecated.
      Convert the given legacy stream to a LinStream. The legacy stream should not be used after this.
      Parameters:
      inputStream - the legacy stream
      Returns:
      the lin-bus stream
    • convertStream

      public static DataOutputStream convertStream(NBTOutputStream outputStream)
      Deprecated.
      Convert the given legacy stream to a DataOutputStream. The legacy stream should not be used after this.
      Parameters:
      outputStream - the legacy stream
      Returns:
      the data output stream