Skip to content

Commit

Permalink
Add BlockType#hasBlockEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
Lignium committed Aug 20, 2023
1 parent c87ae50 commit 4f40b35
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/org/spongepowered/api/block/BlockType.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();

}

0 comments on commit 4f40b35

Please sign in to comment.