Created
August 28, 2014 22:42
-
-
Save Flamedek/c049a89eaf032f40e38f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Block targetBlock(Player p) { | |
Location pos1 = p.getEyeLocation(); | |
BlockIterator bit = new BlockIterator(pos1, 0D); | |
Block next = null; | |
while(bit.hasNext()) { | |
next = bit.next(); | |
if(!next.isEmpty()) { | |
break; | |
} } | |
return next; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment