From 4f40b35e5117c4e01b86381cd6da031dd0b707dc Mon Sep 17 00:00:00 2001 From: Lignium Date: Sun, 20 Aug 2023 19:30:19 +0300 Subject: [PATCH] Add BlockType#hasBlockEntity --- src/main/java/org/spongepowered/api/block/BlockType.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/org/spongepowered/api/block/BlockType.java b/src/main/java/org/spongepowered/api/block/BlockType.java index dcd45a2d20..261cd4229a 100644 --- a/src/main/java/org/spongepowered/api/block/BlockType.java +++ b/src/main/java/org/spongepowered/api/block/BlockType.java @@ -97,4 +97,11 @@ public interface BlockType extends DefaultedRegistryValue, ComponentLike, StateC */ boolean isAnyOf(BlockType... types); + /** + * Returns true if this type will have a block entity when placed in the world + * + * @return true if this type will have a block entity when placed in the world + */ + boolean hasBlockEntity(); + }