Solved Get Bukkit Entity from NMS entity

Discussion in 'Spigot Plugin Development' started by xBallisticBlazex, Aug 14, 2017.

  1. Hi,
    Would anyone know how to get a Bukkit entity from an NMS entity?
    I tried a simple cast but it is not possible.
    Maybe through matching ids?
    Thanks.
     
  2. If you've checked the methods available, you'd have noticed the getBukkitEntity() method.
     
    • Like Like x 1
    • Agree Agree x 1
  3. Wow, didn't know that existed. Thanks!