mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 20:23:53 -07:00
@@ -198,6 +198,16 @@ public class CraftBlock implements Block {
|
|||||||
return getWorld().getBlockAt(getX() + modX, getY() + modY, getZ() + modZ);
|
return getWorld().getBlockAt(getX() + modX, getY() + modY, getZ() + modZ);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the block at the given offsets
|
||||||
|
*
|
||||||
|
* @param face face
|
||||||
|
* @return Block at the given offsets
|
||||||
|
*/
|
||||||
|
public Block getRelative(BlockFace face) {
|
||||||
|
return getRelative(face.getModX(), face.getModY(), face.getModZ());
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the face relation of this block compared to the given block<br />
|
* Gets the face relation of this block compared to the given block<br />
|
||||||
* <br />
|
* <br />
|
||||||
|
Reference in New Issue
Block a user