Add thread safety warning

Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
TheMode 2021-12-15 18:16:54 +01:00
parent 817bb32c3a
commit ce03c45b5e
2 changed files with 6 additions and 5 deletions

View File

@ -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.
* <p>
* The returned tag reader is not thread-safe.
*
* @param compound the compound to convert
* @return a {@link TagReadable} capable of reading {@code compound}

View File

@ -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.
* <p>
* The returned tag writer is not thread-safe.
*
* @param compound the compound to convert
* @return a {@link TagWritable} capable of writing {@code compound}