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

FallingBlock setHurtEntities(boolean) / getHurtEntities()

XMLWordPrintable

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

      It seems like anvils spawned by World#spawnFallingBlock(Material, byte) do not hurt entities as the boolean flag "hurtEntities" in its handle is always false and not settable.

      The only way to enable damage for entities is to access NMS directly or set an anvil block instead of spawning a falling block.

      Therefore I would like to see a getter and setter for this boolean value added. A setter is already implemented by the EntityFallingBlock#a(boolean) method, however there is no getter so the "hurtEntities" field must be changed to public to achieve a getter on this field.

            md_5 md_5
            matzefratze123 matzefratze123
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: