Skip to content

Instantly share code, notes, and snippets.

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;
---- Minecraft Crash Report ----
// You should try our sister game, Minceraft!
Time: 2-8-14 23:36
Description: Exception ticking world
java.lang.NoClassDefFoundError: net/minecraft/world/World$4
at net.minecraft.world.World.func_147460_e(World.java:1133)
at net.minecraft.world.World.func_147459_d(World.java:1052)
at net.minecraft.world.World.func_147444_c(World.java:1017)