Deprecated getTargetBlock()

Discussion in 'Plugin Development' started by Florianis, Oct 11, 2013.

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

    Florianis

    Since Minecraft 1.6.4 the method getTargetBlock() for Class player is deprecated. So my question is which method to use instead of getTargetBlock(). All related methods I found are deprecated too.

    Please note that I do not use this in an event, so no event.getClickedBlock() will work :(

    I hope somebody can help me

    Florianis
     
  2. The problem is the usage of magic values in the methods parameters. It was deprecated because in 1.7 it will be removed. But as there is no build for 1.7, there is no method other than that one. So you will need to use the deprecated method here, and change it when bukkit 1.7 is out.
     
    Wituz likes this.
  3. Offline

    Florianis

    thanks!
     
Thread Status:
Not open for further replies.

Share This Page