Skip to content

Commit

Permalink
Add BlockType#hasBlockEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
Lignium authored and Faithcaio committed Oct 4, 2023
1 parent 3cd95e5 commit 2729a88
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 2729a88

Please sign in to comment.