Skip to content

Conversation

@Lignium
Copy link
Contributor

@Lignium Lignium commented Aug 22, 2023

[SpongeAPI|Sponge]

There is currently no quick way in the API to check if a particular block type can contain block entity data. It's possible to iterate over BlockEntityTypes and check BlockEntityType#isValidBlock, but obviously that would be much slower than just checking instanceof behind the scenes. I propose to introduce such a method.

@Faithcaio Faithcaio merged commit 2729a88 into SpongePowered:api-10 Oct 4, 2023
@Lignium Lignium deleted the feature/has-block-entity branch June 19, 2024 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants