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

Get spawner in CreatureSpawnEvent

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Invalid
    • Minor
    • None
    • None

    Description

      Currently, the only way of getting the spawner causing the CreatureSpawnEvent is by looping through nearby blocks and checking if it's a spawner.

      This is:
      1. Inefficient
      2. Bad because it may produce incorrect results if 2 spawners are placed next to each other.

      I request that a method is made in CreatureSpawnEvent named for example, getBlock() which returns null by default but if the spawn cause is due to a spawner, it returns the spawner block.

      Attachments

        Activity

          People

            Unassigned Unassigned
            KingFaris10 Faris Rehman
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: