Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-6719

Add getTileEntities() / getBlockStates() to LimitedRegion (BlockPopulator)

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None
    • 1.17.1
    • Yes

      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

            Unassigned Unassigned
            Foorcee Foorcee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: