Protocol interfaces to become sealed in the future

This commit is contained in:
TheMode 2021-07-27 10:28:06 +02:00
parent c549ec1663
commit 82e5873b4f
2 changed files with 4 additions and 4 deletions

View File

@ -5,10 +5,7 @@ import net.minestom.server.registry.Registry;
import net.minestom.server.tag.Tag; import net.minestom.server.tag.Tag;
import net.minestom.server.tag.TagReadable; import net.minestom.server.tag.TagReadable;
import net.minestom.server.utils.NamespaceID; import net.minestom.server.utils.NamespaceID;
import org.jetbrains.annotations.Contract; import org.jetbrains.annotations.*;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.Unmodifiable;
import org.jglrxavpok.hephaistos.nbt.NBTCompound; import org.jglrxavpok.hephaistos.nbt.NBTCompound;
import java.util.Collection; import java.util.Collection;
@ -22,6 +19,7 @@ import java.util.function.BiPredicate;
* <p> * <p>
* Implementations are expected to be immutable. * Implementations are expected to be immutable.
*/ */
@ApiStatus.NonExtendable
public interface Block extends ProtocolObject, TagReadable, BlockConstants { public interface Block extends ProtocolObject, TagReadable, BlockConstants {
/** /**

View File

@ -4,12 +4,14 @@ import net.minestom.server.instance.block.Block;
import net.minestom.server.registry.ProtocolObject; import net.minestom.server.registry.ProtocolObject;
import net.minestom.server.registry.Registry; import net.minestom.server.registry.Registry;
import net.minestom.server.utils.NamespaceID; import net.minestom.server.utils.NamespaceID;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.Contract; import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable; import org.jetbrains.annotations.Nullable;
import java.util.Collection; import java.util.Collection;
@ApiStatus.NonExtendable
public interface Material extends ProtocolObject, MaterialConstants { public interface Material extends ProtocolObject, MaterialConstants {
/** /**
* Returns the material registry. * Returns the material registry.