[SPIGOT-6719] Add getTileEntities() / getBlockStates() to LimitedRegion (BlockPopulator) Created: 24/Aug/21  Updated: 30/Aug/21  Resolved: 30/Aug/21

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Foorcee Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None

Version: 1.17.1
Guidelines Read: Yes

 Description   

Would it be possible to add a method into the LimitedRegion to get all TileEntities in a region?
With the old method in BlockPopulator you had access to it via the chunk.
Otherwise you would have to interact over all positions and check if a TileEntity is present, which has a worse performance.

https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/generator/BlockPopulator.html



 Comments   
Comment by Marvin Rieple [ 24/Aug/21 ]

Made a PR for this: craftbukkit#922

Generated at Tue Apr 22 03:00:31 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.