Solved Event hierarchy

Discussion in 'Plugin Development' started by epicfacecreeper, Jul 7, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    epicfacecreeper

    If I listen for a PlayerInteractEvent will it also get called if a PlayerInteractEntityEvent happens?
     
  2. Offline

    iFamasssxD

    No. Only when interacting with an item or a block.
     
  3. Offline

    Sagacious_Zed Bukkit Docs

    If you listen to a super class, you will get all sub classes. In THIS case PlayerInteractEntityEvent is not a subclass of PlayerInteractEvent
     
  4. Offline

    epicfacecreeper

    Thanks. I guess I should have checked that.
     
Thread Status:
Not open for further replies.

Share This Page