Get direction of dispenser?

Discussion in 'Plugin Development' started by bobnixon1, Mar 2, 2014.

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

    bobnixon1

    How would I get the direction of a dispenser, because .getData() is deprecated and I don't want to use it.
     
  2. Offline

    Desle

    bobnixon1
    So.. why dont you want to use it?
     
  3. Offline

    Chinwe

    You could try casting block.getType().getData() to a DirectionalContainer and using .getFacing() ?
     
  4. Offline

    bobnixon1

    Deprecated means it might be removed later or it leads to unstable code, so it is best to not use deprecated code.
     
    Poyoarya likes this.
Thread Status:
Not open for further replies.

Share This Page