Chest from PlayerInteractEvent?

Discussion in 'Plugin Development' started by russjr08, May 21, 2012.

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

    russjr08

    Hey guys, I would like to get a chest (So I can get the inventory of it) from a PlayerInteractEvent, what would be the best way of doing this?
     
  2. Offline

    CorrieKay

    check if the clicked block's blockstate is an instanceof Chest, if so, cast its blockstate as a chest, and youre good to go :3
     
    russjr08 and B3NW like this.
Thread Status:
Not open for further replies.

Share This Page