Change `getTag` annotation

This commit is contained in:
themode 2022-03-10 15:54:12 +01:00
parent a29a51ee0a
commit c1d65071d3
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package net.minestom.server.tag;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.UnknownNullability;
import org.jglrxavpok.hephaistos.nbt.NBTCompoundLike;
/**
@ -16,7 +17,7 @@ public interface TagReadable {
* @param <T> the tag type
* @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.