From 0f2be00291f4a04f925b0230d38dd2835918a96a Mon Sep 17 00:00:00 2001 From: TheMode Date: Sun, 24 Apr 2022 05:09:39 +0200 Subject: [PATCH] Make Metadata.Entry sealed Signed-off-by: TheMode --- src/main/java/net/minestom/server/entity/Metadata.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/minestom/server/entity/Metadata.java b/src/main/java/net/minestom/server/entity/Metadata.java index 471a7b0ff..2e58d0dfa 100644 --- a/src/main/java/net/minestom/server/entity/Metadata.java +++ b/src/main/java/net/minestom/server/entity/Metadata.java @@ -210,7 +210,8 @@ public final class Metadata { return metadataMap; } - public interface Entry extends Writeable { + public sealed interface Entry extends Writeable + permits MetadataImpl.EntryImpl { int type(); @UnknownNullability T value();