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

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

    XMLWordPrintable

Details

    • New Feature
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None
    • 1.17.1
    • 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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: