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.
[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 checkBlockEntityType#isValidBlock
, but obviously that would be much slower than just checkinginstanceof
behind the scenes. I propose to introduce such a method.