Package com.sk89q.jnbt
Class LinBusConverter
java.lang.Object
com.sk89q.jnbt.LinBusConverter
Deprecated.
JNBT is being removed in WE8.
Converts between JNBT and lin-bus classes.
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.enginehub.linbus.stream.LinStream
convertStream
(NBTInputStream inputStream) Deprecated.Convert the given legacy stream to aLinStream
.static DataOutputStream
convertStream
(NBTOutputStream outputStream) Deprecated.Convert the given legacy stream to aDataOutputStream
.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.
-
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 valueLT
- the type of the lin-bus tag- Parameters:
tag
- the lin-bus tag- Returns:
- the corresponding legacy JNBT tag
-
convertStream
Deprecated.Convert the given legacy stream to aLinStream
. The legacy stream should not be used after this.- Parameters:
inputStream
- the legacy stream- Returns:
- the lin-bus stream
-
convertStream
Deprecated.Convert the given legacy stream to aDataOutputStream
. The legacy stream should not be used after this.- Parameters:
outputStream
- the legacy stream- Returns:
- the data output stream
-