Solved Get first block in direction

Discussion in 'Plugin Development' started by ButterSquidz, Apr 15, 2014.

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

    ButterSquidz

    So lets say I have a Vector object representing the direction that a player is facing. How would I go about getting the first non-air block in that direction?

    Thank you in advance
     
  2. Offline

    rfsantos1996

  3. Offline

    ButterSquidz

  4. Offline

    rfsantos1996

    Deprecated doesn't mean not usable. Check the reason: "Magic value" and you just want to exclude air, so it'll be "null" anyway

    Its not Deprecated for your use
     
    ButterSquidz likes this.
  5. Offline

    ButterSquidz

    I am aware that deprecated doesn't mean unusable. However, methods are usually deprecated for a reason, which I didn't understand in this case.

    Anyways, thank you. Marking as solved
     
  6. Offline

    rfsantos1996

    Magic value in this case is the <Byte> thing that represent old material IDs (I suppose)
     
Thread Status:
Not open for further replies.

Share This Page