mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-30 21:17:53 +01:00
Protocol interfaces to become sealed in the future
This commit is contained in:
parent
c549ec1663
commit
82e5873b4f
@ -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;
|
||||
* <p>
|
||||
* Implementations are expected to be immutable.
|
||||
*/
|
||||
@ApiStatus.NonExtendable
|
||||
public interface Block extends ProtocolObject, TagReadable, BlockConstants {
|
||||
|
||||
/**
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user