Add Unmodifiable annotation

This commit is contained in:
TheMode 2021-06-22 23:31:07 +02:00
parent f17355a972
commit 22ba15f390

View File

@ -8,6 +8,7 @@ import net.minestom.server.utils.NamespaceID;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.Unmodifiable;
import org.jglrxavpok.hephaistos.nbt.NBTCompound;
import java.util.Map;
@ -59,6 +60,7 @@ public interface Block extends ProtocolObject, TagReadable, BlockConstants {
@Contract(pure = true)
@Nullable BlockHandler handler();
@Unmodifiable
@Contract(pure = true)
@NotNull Map<String, String> properties();