From 82e5873b4f1b59a32c8d313497d5e3036d2f6f09 Mon Sep 17 00:00:00 2001 From: TheMode Date: Tue, 27 Jul 2021 10:28:06 +0200 Subject: [PATCH] Protocol interfaces to become sealed in the future --- src/main/java/net/minestom/server/instance/block/Block.java | 6 ++---- src/main/java/net/minestom/server/item/Material.java | 2 ++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/minestom/server/instance/block/Block.java b/src/main/java/net/minestom/server/instance/block/Block.java index 42c97571c..cecbeb497 100644 --- a/src/main/java/net/minestom/server/instance/block/Block.java +++ b/src/main/java/net/minestom/server/instance/block/Block.java @@ -5,10 +5,7 @@ import net.minestom.server.registry.Registry; import net.minestom.server.tag.Tag; import net.minestom.server.tag.TagReadable; 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.jetbrains.annotations.*; import org.jglrxavpok.hephaistos.nbt.NBTCompound; import java.util.Collection; @@ -22,6 +19,7 @@ import java.util.function.BiPredicate; *

* Implementations are expected to be immutable. */ +@ApiStatus.NonExtendable public interface Block extends ProtocolObject, TagReadable, BlockConstants { /** diff --git a/src/main/java/net/minestom/server/item/Material.java b/src/main/java/net/minestom/server/item/Material.java index 84bd7863d..8f9b836df 100644 --- a/src/main/java/net/minestom/server/item/Material.java +++ b/src/main/java/net/minestom/server/item/Material.java @@ -4,12 +4,14 @@ import net.minestom.server.instance.block.Block; import net.minestom.server.registry.ProtocolObject; import net.minestom.server.registry.Registry; import net.minestom.server.utils.NamespaceID; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.Contract; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.util.Collection; +@ApiStatus.NonExtendable public interface Material extends ProtocolObject, MaterialConstants { /** * Returns the material registry.