mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-09 08:51:38 +01:00
Add thread safety warning
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
817bb32c3a
commit
ce03c45b5e
@ -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}
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user