mirror of https://github.com/Minestom/Minestom.git
Change `getTag` annotation
This commit is contained in:
parent
a29a51ee0a
commit
c1d65071d3
|
@ -2,6 +2,7 @@ package net.minestom.server.tag;
|
||||||
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
import org.jetbrains.annotations.UnknownNullability;
|
||||||
import org.jglrxavpok.hephaistos.nbt.NBTCompoundLike;
|
import org.jglrxavpok.hephaistos.nbt.NBTCompoundLike;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -16,7 +17,7 @@ public interface TagReadable {
|
||||||
* @param <T> the tag type
|
* @param <T> the tag type
|
||||||
* @return the read tag, null if not present
|
* @return the read tag, null if not present
|
||||||
*/
|
*/
|
||||||
<T> @Nullable T getTag(@NotNull Tag<T> tag);
|
<T> @UnknownNullability T getTag(@NotNull Tag<T> tag);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns if a tag is present.
|
* Returns if a tag is present.
|
||||||
|
|
Loading…
Reference in New Issue