From ce03c45b5e9c3a9528649696deacded670d64caa Mon Sep 17 00:00:00 2001 From: TheMode Date: Wed, 15 Dec 2021 18:16:54 +0100 Subject: [PATCH] Add thread safety warning Signed-off-by: TheMode --- src/main/java/net/minestom/server/tag/TagReadable.java | 6 +++--- src/main/java/net/minestom/server/tag/TagWritable.java | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/net/minestom/server/tag/TagReadable.java b/src/main/java/net/minestom/server/tag/TagReadable.java index d157c5062..8fc452b64 100644 --- a/src/main/java/net/minestom/server/tag/TagReadable.java +++ b/src/main/java/net/minestom/server/tag/TagReadable.java @@ -2,8 +2,6 @@ package net.minestom.server.tag; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import org.jglrxavpok.hephaistos.nbt.NBTCompound; -import org.jglrxavpok.hephaistos.nbt.NBTCompoundGetters; import org.jglrxavpok.hephaistos.nbt.NBTCompoundLike; /** @@ -31,7 +29,9 @@ public interface TagReadable { } /** - * Converts an nbt compound to a tag reader. + * Converts a nbt compound to a tag reader. + *

+ * The returned tag reader is not thread-safe. * * @param compound the compound to convert * @return a {@link TagReadable} capable of reading {@code compound} diff --git a/src/main/java/net/minestom/server/tag/TagWritable.java b/src/main/java/net/minestom/server/tag/TagWritable.java index ac4a3f3f5..c343c3cba 100644 --- a/src/main/java/net/minestom/server/tag/TagWritable.java +++ b/src/main/java/net/minestom/server/tag/TagWritable.java @@ -2,7 +2,6 @@ package net.minestom.server.tag; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import org.jglrxavpok.hephaistos.nbt.NBTCompound; import org.jglrxavpok.hephaistos.nbt.mutable.MutableNBTCompound; /** @@ -24,7 +23,9 @@ public interface TagWritable { } /** - * Converts an nbt compound to a tag writer. + * Converts a nbt compound to a tag writer. + *

+ * The returned tag writer is not thread-safe. * * @param compound the compound to convert * @return a {@link TagWritable} capable of writing {@code compound}