World world = player.getEntityWorld(); BlockPos playerPos = player.getPosition(); BlockPos abovePos = playerPos.up(); boolean isAboveSolid = world.isSideSolid(abovePos, EnumFacing.DOWN);
World world = player.getEntityWorld(); BlockPos playerPos = player.getPosition(); BlockPos frontPos = playerPos.offset(player.getHorizontalFacing()); boolean isFrontSolid = world.isSideSolid(frontPos, EnumFacing.getFacingFromVector(player.getLookVec().x, player.getLookVec().y, player.getLookVec().z));The package library is "net.minecraft.world".