• Type: New Feature
    • Resolution: Unresolved
    • Priority: Minor
    • None
    • Affects Version/s: None
    • None
    • n/a
    • Yes

      I would like to suggest the addition of a method Entity#getDropMaterial
      This would return the material (item) that represents this entity.

      Examples:
      ArmorStand -> Material.ARMOR_STAND
      OakBoat -> Material.OAK_BOAT

      NMS AbstractBoat has a method #getDropItem
      I've seen a few people make comments it would be nice if Bukkit had something like this for boats.
      I figured it would be nice to have a method in Entity (which for most would just return null, or maybe AIR?!?!?) and other entity classes which have an associated item (ie: armor stands, boats) would return said material.

      I could do a PR for this, but I figured I'd see if its wanted before I put the work into it.

            Assignee:
            Unassigned
            Reporter:
            Shane Bee
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: