Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private Block getBlockIntersection(final Location startLocation, final Vector direction) {
- final RayTraceResult result = startLocation.getWorld().rayTraceBlocks(startLocation, direction, 10, FluidCollisionMode.NEVER, true);
- if (result == null || result.getHitBlock() == null)
- return null;
- return result.getHitBlock();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement