diff --git a/src/main/java/net/minestom/server/item/ItemMeta.java b/src/main/java/net/minestom/server/item/ItemMeta.java index 847ffeaad..2cdfb9859 100644 --- a/src/main/java/net/minestom/server/item/ItemMeta.java +++ b/src/main/java/net/minestom/server/item/ItemMeta.java @@ -78,7 +78,8 @@ public sealed interface ItemMeta extends TagReadable, Writeable return Set.copyOf(getTag(ItemTags.CAN_PLACE_ON)); } - sealed interface Builder extends Taggable permits ItemMetaImpl.Builder { + sealed interface Builder extends Taggable + permits ItemMetaImpl.Builder, ItemMetaView.Builder { @NotNull ItemMeta build(); default @NotNull Builder set(@NotNull Tag tag, @Nullable T value) { diff --git a/src/main/java/net/minestom/server/item/ItemMetaView.java b/src/main/java/net/minestom/server/item/ItemMetaView.java index 6498bbe5d..53232d3f7 100644 --- a/src/main/java/net/minestom/server/item/ItemMetaView.java +++ b/src/main/java/net/minestom/server/item/ItemMetaView.java @@ -1,7 +1,6 @@ package net.minestom.server.item; import net.minestom.server.tag.TagReadable; -import net.minestom.server.tag.Taggable; import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; @@ -9,7 +8,7 @@ import org.jetbrains.annotations.NotNull; @ApiStatus.Experimental public interface ItemMetaView extends TagReadable { @ApiStatus.Experimental - interface Builder extends Taggable { + non-sealed interface Builder extends ItemMeta.Builder { default @NotNull ItemMeta build() { return new ItemMetaImpl(tagHandler().copy()); }