[HELP] Method to return blocks

Discussion in 'Plugin Development' started by ACTruncale, Feb 10, 2011.

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

    ACTruncale

    I am trying to write a method to return the block at the given coordinates. I've looked around the API and I can't find anything that will work (although I am quite blind). Here is what I'd like it to look like:

    Code:
    // Returns the block at location (x,y,z)
    public block findBlock(int x, int y, int z){
    
       //code here
       return block;
    }
    Can anyone help me?
     
  2. Offline

    Mixcoatl

    Is there some reason preventing you from using World.getBlockAt(int, int, int)?
     
  3. Offline

    ACTruncale

    Ah thank you, I just had a brain fart :)
     
Thread Status:
Not open for further replies.

Share This Page