FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add BlockType#hasBlockEntity by Lignium · Pull Request #2462 · SpongePowered/SpongeAPI · GitHub

Add BlockType#hasBlockEntity - #2462

Merged
Faithcaio merged 1 commit into
SpongePowered:api-10from
Lignium:feature/has-block-entity
Oct 4, 2023
Merged

Add BlockType#hasBlockEntity#2462
Faithcaio merged 1 commit into
SpongePowered:api-10from
Lignium:feature/has-block-entity

Conversation

Lignium commented Aug 22, 2023
edited
Loading

Copy link
Copy Markdown
Contributor

[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 merged commit 2729a88 into SpongePowered:api-10 Oct 4, 2023
Lignium deleted the feature/has-block-entity branch June 19, 2024 15:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL